Today on Apolyton POLYCAST #58 (PROMO #9) MODCAST #23 CIVCON '09 ANNOUNCED: AUGUST 7-9, 2009 TRI-LEAGUE #27 BTS TEAM D.G.: ENGAGE NOW
Apolyton Civilization Site Forums
main | civ4 | col | civrev | galciv2 | alt | civ3 | civ2 | ctp2 | smac | about | polycast
- Order Civilization IV: Colonization (Amazon US)/(UK) -
- Order Civilization: Revolution [360] (Amazon US)/(UK) | [PS3] (US)/(UK) | [DS] (US)/(UK) -
ApolytonPLUS | register | new posts | pm (-/-) | members
faq | news | civgroups (news) | hall of fame | downloads | upload | plus | store | search
Apolyton Civilization Site Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Site Forums > Call To Power > CtP2 Source Code Project > PROJECT: Adding Religion DataBase
Page: Print | Email | Subscribe | Report News       0 votes -  average
30.Nov: POLYCAST EPISODE 58: `YOU DON`T WANT TO KNOW`
27.Nov: SAMPLE POLYCAST WITH `PROMO 9`
23.Nov: MODCAST #23: `ANGRY AUSTRALIANS`
CivGroups
CTP2 Source Code Project (77): Not a Member - Join

bottom of page
  GALACTIC CIVILIZATIONS $19.99 - CIV3 CONQUESTS $29.99 - CIV3 from $9.99 - SMAC+SMAX $19.99
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
E
Call to Power II Democracy GameCTP2 Source Code Project
Emperor
Proud member of the CTP2AE coding team :)
May 1999
time: 05:19
26-03-2007 20:10 | www
edit | quote
#1 | report |
[PROJECT] Adding Religion DataBase Support Apolyton buy from Amazon


in response to this:

quote:
Originally posted by Martin Gühmann


Well one thing you can do is to use multiple lines, even it looks cleaner and less confusing if there would be just one line. But on the other if you think that this is so complicated then you should check whether you can simplify the stuff. The first thing you have to do is to add that Religion database, so that you can store all the necessary information like:

- Science lost due to dogmas
- The spreading rate which reflects how aggressive its missionaries are.
- Certain advances that cannot be researched due to dogmas
- Happiness increase due to false hopes
- Gold loss, you know churches cost a little bit
- Production loss, there are times when you have to pray and can't work
- Tech loss, even you know this tech nevertheless it is heretical so you better forget it, since the invincible pink unicorn is a higher power and she is always right. Here you see how you can model the dark ages. Nice isn't it.
- Progrome chance, there are some people of different faith (actually infedels of a religous point of view) in your town and you have nothing to do and your religion preaches hatred towards the infedels. So you can kill some people. On the other hand remember the witch burning, so even people from your own fath aren't save.

And now I go back to your last question, somehow you have to organize the information. Take the list above all the stuff in it is related to one topic: The religion database. After that you have some sort of list on the left side what should be in as headlines or titles and on the right side a more detailed description. And that is also the structore I chose for all those new database flags. First the remark that there is something for modders then the database and the new flags. Of course I had to use what you have provided and I tryed to make sense out of it. Sometimes successfully sometimes unsuccessfully in that case I just may have skipped information.

As you can see with this list approach or maybe you can also call it tree approach I broke the information into smaller pieces. Since each piece is less complex than the whole. Each piece can be understand more easily and once you have understand them you can put them together to the whole. That's how the world is built. Complex things like man are put together by simpler things like cells and even those are put together by simpler things like lipids, proteins, sugars, DNA, water, ions and probably more. But also these stuff is made out of simpler things, like atoms. And even those are made of simpler things like neutrones, protones and electrones. And even this isn't the end, but I stop here.

That's at least a part of how the world really works. And our language just describes the real world so it wouldn't be so surprising that it works in a similar fashion. It starts with sounds maybe even with something simpler. But anyway let's start at the sound level. Those sounds are combined into syllables and the syllables are put together to form words. Words put together form clauses. And clause put together form sentences. And sentences put together form paragraphs. And paragraphs put together form texts which you may find in a book or on the internet.

In principle you can do all this. But your problem is how to organize all this kind of information that a reader can understand it without thinking to much about. Interestingly you are not the only one with this problem there are many scientists who are good at scince but not so good at words. And that's the reason why science is so hard to understand, not because it is so difficult but the scientists don't know how to communicate it. And therefore the text is called the Science of Scientific Writing.

-Martin



I created a cdb as you see in the code then in MSVC I went to project->Add To Project->Files and selected the cdb file. when i try addin it again it says its there. however when I compile I don't see a religionrecord.cpp or anything else like the cdb's have.

Fromafar
CTP2 Source Code Project
Prince
May 2003
time: 14:19
26-03-2007 21:07
edit | quote
#2 | report |
Support Apolyton, buy GURPS/ Alpha Centauri


cdb is not a standard extension like cpp, so MSVC does not know what to do with this file.
You have to add a custom rule for it to compile. Looking at the properties of some other cdb file should give you an idea of what to add.

E
Call to Power II Democracy GameCTP2 Source Code Project
Emperor
Proud member of the CTP2AE coding team :)
May 1999
time: 05:19
27-03-2007 03:08 | www
edit | quote
#3 | report |
Increase Your PM Length


i checked properties under view and it didn't say anything special or anything differnt than my religion cdb. what should i be looking for?

Fromafar
CTP2 Source Code Project
Prince
May 2003
time: 14:19
27-03-2007 21:36
edit | quote
#4 | report |
Support Apolyton, buy GURPS/ Alpha Centauri


It was something like "Custom build step". It is a long time ago that I have used MSVC6, so I am not really sure any more, but I think you have to select the file in the project manager (File view) and right click to get to a settings window. The text value of the custom build step property should contain a call to dbgen, to generate the C++ files from the cdb files.

E
Call to Power II Democracy GameCTP2 Source Code Project
Emperor
Proud member of the CTP2AE coding team :)
May 1999
time: 05:19
29-03-2007 21:09 | www
edit | quote
#5 | report |
Inflate your Upload Space


i looked in the MSVC and found nothing that specified a custom build step. I saw martin added a new DB but still cant find the link between a cdb and the dbgen

Martin Gühmann
Call to Power II Democracy GameCall to Power Democracy GameCTP2 Source Code Project
Moderator
Berlin, Germany
Mar 2001
time: 14:19

HOF entries: 3
29-03-2007 21:42 | www
edit | quote
#6 | report |
Support Apolyton or Terrorists Win


Actually Fromafar is very close:

On the File View tab select the file in question, right click, select Settings... and if the selected file is a *.cdb file it should show you the Custom Build tab. Now you have just to compare and copy and paste and modify.

So what's the problem?

-Martin

E
Call to Power II Democracy GameCTP2 Source Code Project
Emperor
Proud member of the CTP2AE coding team :)
May 1999
time: 05:19
29-03-2007 21:57 | www
edit | quote
#7 | report |
Tired of ads?


ok i see where setting is done but how come when i add the religion.cdb it doesn't put it in the right folder it puts it in the main ctp2 folder while the rest get put down in newdb? does it matter?

well it looks like it compiled but it still not under the right spot

Martin Gühmann
Call to Power II Democracy GameCall to Power Democracy GameCTP2 Source Code Project
Moderator
Berlin, Germany
Mar 2001
time: 14:19
29-03-2007 22:18 | www
edit | quote
#8 | report |
Browse Apolyton AD-FREE


quote:
Originally posted by E
ok i see where setting is done but how come when i add the religion.cdb it doesn't put it in the right folder it puts it in the main ctp2 folder while the rest get put down in newdb? does it matter?


Of course it matters, that's again about expectations, where do I find those *.cdb files? Of course in the newdb folders.

But again what is so difficult to select the right folder right lick on it and add the files you want to add?

-Martin

E
Call to Power II Democracy GameCTP2 Source Code Project
Emperor
Proud member of the CTP2AE coding team :)
May 1999
time: 05:19
29-03-2007 23:22 | www
edit | quote
#9 | report |
Put an end to popups!


the cdb is in the newdb folder but when i go to project->settings I can't add religion cdb to that folder. in the settings window right clicking does nothing. however i did put the right input and output stuff so the religionrecord.cpp and stuff was generated in the newdb folder. So it looks like everything works except that in the project settings I cant get the cdb into the newdb folder in that window. weird.

Martin Gühmann
Call to Power II Democracy GameCall to Power Democracy GameCTP2 Source Code Project
Moderator
Berlin, Germany
Mar 2001
time: 14:19
30-03-2007 19:44 | www
edit | quote
#10 | report |
Tired of ads?


quote:
Originally posted by E
the cdb is in the newdb folder but when i go to project->settings I can't add religion cdb to that folder. in the settings window right clicking does nothing. however i did put the right input and output stuff so the religionrecord.cpp and stuff was generated in the newdb folder. So it looks like everything works except that in the project settings I cant get the cdb into the newdb folder in that window. weird.


Why do you click on the menu bar Project->Settings, you are supposed to use the workspace window, that is the window on the left side with the three tabs ClassView, Resources and FileView. Go to the FileView tab and select in the file tree the right folder and add the file in question.

-Martin

E
Call to Power II Democracy GameCTP2 Source Code Project
Emperor
Proud member of the CTP2AE coding team :)
May 1999
time: 05:19
31-03-2007 03:09 | www
edit | quote
#11 | report |
Full PM-box? Change here!


that makes more sense. ok i fixed it and it works. now i have to restrain myself from adding a culture.cdb, policy.cdb (like civics but govt modifiers), etc

actually I won't because i'm trying to stay focused on the interface...

Maquiladora
Call to Power II MultiplayerCTP2 Source Code ProjectCall to Power PBEMCall to Power Multiplayer
Emperor
Monterrey, Mexico
Jun 2001
time: 07:19
05-07-2008 18:47 | www
edit | quote
#12 | report |
Support Apolyton, buy Call to Power 2


I'm gonna post this here since this thread is kinda empty, and it fits better than the AE mod thread.

Here's some things I noticed using the religion mod.

1. Tried to build/found Zoroastrianism religion (wonder) but this message below popped up every time I clicked on it in the build manager or city manager afterward:



2. With "cantsell" flag active, "Sell" button should be disabled at all times. At the moment you can press sell but with no effect obviously.

3. I converted a few enemy cities, but the Zoroastrianism icon over their city (Perth) disappeared after a while, despite their city still being converted to me and my shrine still being present there. See screenshot of religion here:



It also happened in the other cities eventually when I moved close to them again.

4. It seems the religion icon above an enemy city is not visible to the owner of the city, only the owner of the religion. Should it be visible by the victim too? At least this is what it looked like when I switched civs in the scenario editor, but it could be a bug there.

5. Each time you build the religious wonder (holy city) or shrine (religion present) it adds an icon under the city name, so if you have a holy city (religious wonder) and also obviously the religion itself (religious shrine) you end up with 2 of the same icons under the same name, like this:


Athens is the Zoroastrian holy city, Sparta is Pharoahism(?) holy city. Not sure why the same icons are separated for Sparta though, probably just some sorting mistake.

I suggest a different icon for the holy city (religious wonder), and ideally no shrine religion icon if the city is the holy city of the same religion.

6. When your city gets converted and they force their religion on your city (and so the shrine that you can't sell), you can reform your city but it doesn't get rid of their shrine. So should it also remove the religion (shrine) or not?

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 13:19.
Apolyton Time is 08:19.
    top of page
Rate This Thread:
Forum Jump:

 



  Contact Us - Apolyton Civilization Site - Support Us!
Log Out Unregistered
Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.6244 seconds (87.77% PHP - 12.23% MySQL) with 37 queries
Page Loading Time:

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net