Hi all, im making a map for multiplayer and i want to know i can put a limit on the natural resources like gold and stone because they are normally infinite.
Is possible to do this in any way?
Limited resources for a multiplayer map
- Dr.MonaLisa
- High Representative
- Posts: 8708
- Joined: 17 Jun 2010, 11:21
- Location: Poland
- Has thanked: 49 times
- Been thanked: 108 times
Re: Limited resources for a multiplayer map
Unfortunately not. Not by map editor.
In Empire Earth II resources like gold, stone, tin, iron, uranium, oil, saltpeter, food from farms - are endless.
Only wood; food from animals, some tress and fish - has a limit.
It probably can be changed by modding the game files but then:
- all players who play your map have to install the same mod (else you won't be able to play together).
- you won't be longer able to play with the other players who hasn't the mod installed.
If you still want to know what files you have to edit, please let me know.
In Empire Earth II resources like gold, stone, tin, iron, uranium, oil, saltpeter, food from farms - are endless.
Only wood; food from animals, some tress and fish - has a limit.
It probably can be changed by modding the game files but then:
- all players who play your map have to install the same mod (else you won't be able to play together).
- you won't be longer able to play with the other players who hasn't the mod installed.
If you still want to know what files you have to edit, please let me know.
Best regards,
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
Re: Limited resources for a multiplayer map
Yes, I will appreciate if you can tell me wich files are what i need to edit to modify that.
Thank you very much for all your help.
Thank you very much for all your help.
- Dr.MonaLisa
- High Representative
- Posts: 8708
- Joined: 17 Jun 2010, 11:21
- Location: Poland
- Has thanked: 49 times
- Been thanked: 108 times
Re: Limited resources for a multiplayer map
Go to the folder:
C:\Program Files (x86)\Sierra\Empire Earth II\zips
Click the right mouse button on file db.zip, then select: "Properties" from the list.
In "General" tab uncheck attribute: "read-only", then click "OK" to save the changes.
Open the file: db.zip (you can use Windows Explorer or WinRar), and go to:
db/Units then open file: resources.ddf with Notepad (or any other text editor).
The amout of wood is here:
You can change the amout and even the number workers.
If we look at the gold:
As you can see, there is no value: "alwaysExhaustible", so the amout is endless.
If we edit it to:
Then the amout of the gold will be 3000, screenshot:
https://forum.ee2.eu/oldpics/o-Sf7jx0H.jpg
The gold will disappear when you use all resources from it.
Same with uranium, default it is:
As you can see maxNumOfWorkers is 0. If you change it to any other number, your citizens will be able to get uranium without uranium mine! It looks very funny, screenshots:
https://forum.ee2.eu/oldpics/o-FOOwi4B.jpg
https://forum.ee2.eu/oldpics/o-hAJJYwZ.jpg
To limit the uranium amout, change the code to:
You can do this with every resource. Just search for it in that file.
When you finish save the file, and be sure that it replaced the orginal file in db.zip/db/Units
If you want to play with your brother on this mod, just send him file db.zip and tell him to replace the orginal one.
C:\Program Files (x86)\Sierra\Empire Earth II\zips
Click the right mouse button on file db.zip, then select: "Properties" from the list.
In "General" tab uncheck attribute: "read-only", then click "OK" to save the changes.
Open the file: db.zip (you can use Windows Explorer or WinRar), and go to:
db/Units then open file: resources.ddf with Notepad (or any other text editor).
The amout of wood is here:
Code: Select all
abilities [
// change alwaysExhaustible to make tree exhaustible
Resource { type = kResourceType_Wood; alwaysExhaustible = 1; amount = 1277; maxNumOfWorkers = 3}
]
If we look at the gold:
Code: Select all
abilities [
Resource { type = kResourceType_Gold; amount = 1000; maxNumOfWorkers = 6}
]
If we edit it to:
Code: Select all
abilities [
Resource { type = kResourceType_Gold; alwaysExhaustible = 1; amount = 3000; maxNumOfWorkers = 6}
]
https://forum.ee2.eu/oldpics/o-Sf7jx0H.jpg
The gold will disappear when you use all resources from it.
Same with uranium, default it is:
Code: Select all
abilities [
Resource { type = kResourceType_Uranium; amount = 1000; maxNumOfWorkers = 0}
]
https://forum.ee2.eu/oldpics/o-FOOwi4B.jpg
https://forum.ee2.eu/oldpics/o-hAJJYwZ.jpg
To limit the uranium amout, change the code to:
Code: Select all
abilities [
Resource { type = kResourceType_Uranium; alwaysExhaustible = 1; amount = YourNumber; maxNumOfWorkers = 0}
]
When you finish save the file, and be sure that it replaced the orginal file in db.zip/db/Units
If you want to play with your brother on this mod, just send him file db.zip and tell him to replace the orginal one.
Best regards,
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
Re: Limited resources for a multiplayer map
OMG man you are a GOD over the mortals thank you very much for all.
I'll gonna try to do this soon.
I'll gonna try to do this soon.