Hi Cephalo, is this script 3.17 compatable
I really like this map script but I am having problems playing this in multiplayer I keep getting OOS error's whenever I start a game.
I'm using patch 3.17
Does anyone else have problems playing with this in multiplayer?
Hmm, that wouldn't make much sense for a spiral galaxy, but if you want, you can modify the getWrapX and getWrapY functions and set them to return 'True'. That should give you what you are looking for.
What about a toroidal map?
Is this v3.19 compatible?
Looks like there's a bug in there. It's supposed to detect a network game and switch to the apporopriate random number generator but it looks like I left it commented out by accident. Funny nobody noticed this for a whole year.
Ok I fixed it. Download it again and it should work. Let me know because I fixed it without playtesting...
Untested on 3.19. Should work though.
How do you increase the size of the maps without increasing the number of star systems and other features/hazards?
I understand that but I was just wondering how you make a toroidal mapscript.Untested on 3.19. Should work though.
I didn't use a toroidal option because real galaxies are flat discs. If you are at one end of the galaxy, you really do have to cross the whole galaxy to get to the other end. Keep going off the edge and eventually you'll probably hit a whole new galaxy.
I remember editing a couple thing in Final Frontier.py, or was it this one, and then it didn't show up. I was trying to make a mod where planets replaced stars and moons replaced planets. This mod didn't work in the end but why was it that when I removed a few features from the script so it was just a solar system the game didn't show it?
many thanks, i look forward to your response
OK I have tried increasing the map size once before but it didn't work and now i've dived in at the deep end before i learnt to swim. Starting at the beginning, i'll ask questionsOk, I had a look and right at the front of the script there are some tuning variables to adjust the densities of these features.
OK I have tried increasing the map size once before but it didn't work and now i've dived in at the deep end before i learnt to swim. Starting at the beginning, i'll ask questions
Is there a ratio of height to width that needs to be observed when adjusting the map size?
The variables you mentioned above do you decrease the value to decrease the density of features or increase it to do the same?
Is there a step by step guide to setting up or adjusting the parameters of your map before you even start the game?
def checkForWormholeRoom(self,x,y,feature):
gc = CyGlobalContext()
mmap = gc.getMap()
xStart = x - (CyMap().getGridWidth() / 4)
xEnd = x + (CyMap().getGridWidth() / 4) + 1
yStart = y - (CyMap().getGridHeight() / 4)
yEnd = y + (CyMap().getGridHeight() / 4) + 1
for yy in range(yStart,yEnd):
for xx in range(xStart,xEnd):
if (yy == yStart or yy == yEnd - 1) and (xx == xStart or xx == xEnd - 1):
continue #skipping corners
i = GetIndex(xx,yy)
if i == -1:
return False
plot = mmap.plot(xx,yy)
if plot.getFeatureType() != feature:
return False
return True
if self.shouldPlaceFeature(x,y,self.featureWormhole) and self.checkForRoom(x,y,self.featureWormhole) and self.checkForWormholeRoom(x,y,self.featureWormhole):