Making RoE and Planet Generator work together?

Ssenkrad

Jester
Joined
Sep 30, 2010
Messages
52
Location
South Carolina, USA
I've been using the Planet Generator map scripts for quite a while now. I really like the random maps it spits out, and the variety of options for customizing the maps.

I just recently installed Rise of Empires, and have found that the Planet Generator doesn't work any more. It is still in the drop down selection for maps to use on the Custom Game setup screen, but when I select it, none of the custom options appear, and the maps it generates are solid land with scattered lakes (like the Terra map).

Is there any way possible to make the Planet Generator work with RoE? I asked seasnake in the RoE thread, and he suggested that I ask here.

I'm running BTS 3.1.9, RoE 3.5, Planet Generator .68, and the Unofficial Patch 1.6.
 
No idea where exactly the problem is. In general the map script crashes during initializing the map, which leads to such a strange behaviour.
No idea where exactly, but we can find it out.
In My Documents\My Games\Bts, there should be a CivilizationIV.ini file. Open it with a text editor (rightclick, open with Wordpad, Notepad), search for python exceptions in the file and enable that option (if the value is 0, then change it to 1 or vice versa; don't know exactly, i'm not at my gaming pc).
Then try the map again, and post what error message you get.
 
The default .ini setting is:
HidePythonExceptions = 1
Changed it to 0 and ran the Planet Generator script...

Here are the errors:
Traceback (most recent call last)
File "CvEventInterface", line 21, in OnEvent
File "CvCustomEventManager", line 95, in handleEvent
File "CvCustomEventManager", line 106, in _handleDefaultEvent
File "InquisitionEvents", line 119, in onGameStart
AttributeError: 'module' object has no attribute 'DisplayOCCStatus'

Also got two popup errors over the main error message saying:
Can't find type enum for type tag UNIT_PROPHET3
(I missed the second one, clicked OK too quickly)

Thanks for the reply!
 
Yup, you're right. I got the exact same errors when I launched the Archipelago map.

Actually, the issue shows up on the set up screen for a custom single player game.

Here is what the Custom Game setup screen should look like when I select the Planet Generator (without RoE loaded):
170821-1286088830.jpg


Here is what the Custom Game setup screen looks like when I select the Planet Generator with RoE loaded:
170821-1286088902.jpg


Notice all the missing options...
Something is happening before the map is even being generated.
 
That's what I was afraid of... :cry:
No, I don't get any sort of errors besides the Python Exceptions I posted earlier.

The Planet Generator is not included in RoE. It is a stand alone .py file that I used with vanilla BtS before I installed RoE.

I am just hoping there is some way to trick RoE into using the Planet Generator to create maps.
 
Okay...tested something...it's a problem with the setup here.

The more options work in my mod (no idea if it produces a good map :D, but the options are there).
What is different from what i tested?
- In my mod, i don't have a "publicMaps" folder, i have a "PrivateMaps" folder.
- I put the mapscript in this folder, and not the BtS folder
- I deactivated the public maps in my mod via the .ini of my mod, with:
PHP:
; Allow public maps to be used with this mod
AllowPublicMaps = 0

One of these things...or all together are the solution.
So first copy the script to the publicMaps folder of RoE.
If it still does not work, then rename it to PrivateMaps and make the change in the .ini file.
 
Thank you, The_J... very much! :woohoo:

First, I moved the Planet Generator script to the RoE PublicMaps folder.
Result: No entry for the Planet Generator at all.

Next, I renamed the RoE PublicMaps folder to PrivateMaps, and changed the AllowPublicMaps value from 1 to 0.
Result: Play Now, and Custom Game were grayed out on the Single Player menu.

Next, I noticed the NoCustomAssets entry in the RoE .ini file was set to 1. I changed it to 0. I also renamed the RoE PrivateMaps folder back to PublicMaps, and changed the AllowPublicMaps value back to 1.
(Edit: Also, I moved the Planet Generator .py file back to "My User Folder>Documents\My Games\Beyond the Sword\PublicMaps\")
Result: The Planet Generator options showed up in the setup screen like they are supposed to. I generated a map, and looked in the World Builder at the result. It appears to have generated a good map.

The only thing I noticed while scrolling around the map in the WB was, there was no Marshes anywhere. Titanium showed up, but no Marshes.
I can live with that, if that is all that is missing.

Thank you so much, The_J. I owe you a pizza and a pitcher of beer!
 
I'm glad that i could help :).

Next, I renamed the RoE PublicMaps folder to PrivateMaps, and changed the AllowPublicMaps value from 1 to 0.
Result: Play Now, and Custom Game were grayed out on the Single Player menu.

That should not have happened when the script was still in there :confused:.
Okay, doesn't matter now :D.
 
Back
Top Bottom