Let your players choose a government form
I?ve searched over the internet and found another interesting extension , it worked with my xnova 0.8 but I am not sure it will work with any files you can find around here but make a backup of your game and try it anyway ;) It is a nice addon that ads government forms to you game. People can choose between 1 Barbarian 2 Democracy 3 Monarchy 4 Dictatorship . Every government for has its advantages.
So let?s start with the tutorial.
Download this please: http://www.mediafire.com/download.php?njm422xgznn
First you need to go into Templates/OpenGame and open left_menu.tpl :
Find the following code:
Quote:
<td colspan="2"><div><a href="buildings.php" accesskey="b" target="{mf}">{Buildings}</a></div></td>
</tr>
Add after it (don?t replace it) the following code:
Quote:
<tr>
<td colspan="2"><div><a href="staatsform.php" target="{mf}">Government type</a></div></td>
</tr>
Now you have to go at the downloaded files and copy staatsform.php into the root of your game.
Copy staatsform.mo into /language/en/ folder .
Copy staatsform_body.tpl into /templates/OpenGame/ folder .
Do a query in your database with the following SQL code to finish the job:
Quote:
ALTER TABLE `game_users` ADD `staatsform` int(11) NOT NULL default '0';
Notes:
Code:
0 is for Barbarian
1 is for Democracy
2 is for Monarchy
3 is for Dictatorship
You can change them in database even after the player has selected his government form.
Credit of these files goes to its original author, I have just made the tutorial and fixed some minor things.
I hope you like it and remember I don?t take any credits for the files so don?t start .
If you want to say thanks, just press the thanks button, don?t make useless posts
Let your players choose a government form
Nice. Thank you it works with my Xnova files but I had to translate them from english into my language
Re: Let your players choose a government form
Np Im glad you found it useful
Re: Let your players choose a government form
there is no staatsform.php in the rar file.
Re: Let your players choose a government form
i have already seen it working on a german server they are pretty good
Posted via Mobile Device
Re: Let your players choose a government form
can someone post the staatsform.php? it wasnt in teh rar file.
Re: Let your players choose a government form
Are you sure it isnt there? I don't have time to check now but I will check and upload if it isn't there
Re: Let your players choose a government form
ty very much
btw where is the staatsform.php
i found the php on the net you can download it here
http://www.mediafire.com/file/mjx3z1...staatsform.php
it seems like the bonuses like 'speed is increased by 10%' is not code at all lol
Re: Let your players choose a government form
If it's not coded its just bullshit? well anyway ill test ;)
EDIT: indeed no staatsform.php in the rar
EDIT2: Also none of the "advantages" are coded!
Re: Let your players choose a government form
Re: Let your players choose a government form
There is a complete working version of it if you want I can look for I understand both german and french so I have no problems with finding it ;)
Re: Let your players choose a government form
Quote:
Originally Posted by
Yatios
There is a complete working version of it if you want I can look for I understand both german and french so I have no problems with finding it ;)
please do! :) this is a good feature.
also could you grab the 2d map on the german forum i couldnt get mine to work cause of its german :v
Re: Let your players choose a government form
Quote:
Originally Posted by
laxplayer
please do! :) this is a good feature.
also could you grab the 2d map on the german forum i couldnt get mine to work cause of its german :v
If there isn't any version working, let me know, i'll try to code it ;)
Re: Let your players choose a government form
Quote:
Originally Posted by
Yatios
There is a complete working version of it if you want I can look for I understand both german and french so I have no problems with finding it ;)
yea please?
i mean this one doesnt have the right files and such and im having my doubts of it even working :/
Re: Let your players choose a government form
But yatios has the files, he's only translating (they are in german) them and then he will release them!