Adding more locations/bases to the game {helpme}

38 views
Skip to first unread message

12padams

unread,
Nov 19, 2009, 12:36:36 AM11/19/09
to endgame-singularity
Hi I am a fairly new fan to endgame singularity (found it 6 days ago)

I recently because interested in changing the code (windows version)

I find it easy to do things such as move around location buttons. (e.g
north america)
I find it easy to edit the amount of cpu each computer(item) has e.g.
server.
I also find it easy to edit pritty much any value of cpu cost or money
cost which everyone probably does.

But i am finding it hard to "add" things into the game.

For example i am trying to make a new location (island) its really for
testing not that i am desperate for an island in the game... After
editing what i think needs to be edited i try adding it but then
loading up the game goes fine no errors... but the island does not
apper (the base island not the image)

Here is what files i edited.

singularity-0.30\data\locations.dat
I copied info for north america and pasted this right after north
america to make it look like this
[N AMERICA]position_list = 23 | 28[test]position_list = 50 | 50

Then i edited another file.

I basically copied the info for north america and amde it the same for
island but slighty changed the names
[N AMERICA]name = NORTH AMERICAhotkey = ncities_list = Seattle | San
Diego | Vancouver | Atlanta | Merida | Guadalajara | San Jose | Omaha
| Dallas[test]name = islandhotkey = icities_list = beach | inland

But once i bootup the game it worked normally except there was no
island location/base

So do i need to edit other files or something????

Anyway help from anyone would be appreciated

Also it would be very helpful if someone wrote a guide on how to add
new features to the game.

Thanks
from 12padams

Charlie Nolan

unread,
Nov 19, 2009, 11:17:10 AM11/19/09
to endgame-s...@googlegroups.com
Looks like you got almost all the right things. You also need to add
a new modifier set to code/location.py (near the top, look for
modifier_sets = [...]) if you add an open-by-default location, but
missing that would produce a crash, not nothing. (and you probably
can't do it anyway, since the Windows version doesn't use the .py
files, it uses the ones py2exe bundled into its .exe)

The only thing that comes to mind is that from your email, it looks
like you may have been using an editor that doesn't understand
UNIX-style line breaks. The original entry for locations.dat should
look like this:

[N AMERICA]
position_list = 23 | 28

If you don't get the line breaks right, it might just add junk data to
the north america entry.

Try switching to WordPad, I seem to remember that it supports
UNIX-style line breaks but notepad doesn't.

-FM

Charlie Nolan

unread,
Nov 19, 2009, 11:22:35 AM11/19/09
to endgame-s...@googlegroups.com
Oh, if you want to avoid the problem I mentioned at the start, just
add a pre_list with a new tech, and give that a trivial cost (like 1 |
0 | 0) and no pre_list. Or reuse an existing tech. Maybe
Telepresence lets you send a bot out to the island?

You'll also need to add / modify bases so that you can build things on
the island. "pop" is a pre-defined list, so you can't add to it
cleanly (at the moment), but any of the bases with OCEAN, etc. can be
added to by making them an allowed_list and adding "| test" to the
end.

-FM
Reply all
Reply to author
Forward
0 new messages