Modifying the galaxy size for the map generator

Information, How-to's, and discussion about mod'ing Master of Orion II.
User avatar
Lord Brazen
Site Admin
Posts:162
Joined:Mon Jul 18, 2005 10:16 pm
Location:Toronto, Canada
Contact:
Modifying the galaxy size for the map generator

Postby Lord Brazen » Sat Dec 03, 2005 3:40 pm

The code for handling the different galaxy sizes can be altered to adjust the size of map, star sizes and density. You can modify the values at the file offsets below. These are offsets for the orion2v140.exe (subtract 0x40 from the offsets if you want offsets for orion2.exe v 1.31).

NOTE: Take care not to modify the bytes at other offsets nearby as it is game code and will most definately result in a crash.

Code: Select all

offset ------ 1125BE,F Small galaxy map width (lo/hi) 1125C7,8 Small galaxy map height (lo/hi) 1125D0,1 Small galaxy star spacing (lo/hi) 1125D9,A Small galaxy zoom factor (lo/hi) 1125E2,3 Small galaxy star size (lo/hi) 1125EB,C Small galaxy ?? set same as star size ?? (lo/hi) 1125F5,6 Medium galaxy map width (lo/hi) 1125FE,F Medium galaxy map height (lo/hi) 112607,8 Medium galaxy star spacing (lo/hi) 112610,1 Medium galaxy zoom factor (lo/hi) 112619,A Medium galaxy star size (lo/hi) 112622,3 Medium galaxy ?? set same as star size ?? (lo/hi) 11262C,D Large galaxy map width (lo/hi) 112635,6 Large galaxy map height (lo/hi) 11263E,F Large galaxy star spacing (lo/hi) 112647,8 Large galaxy zoom factor (lo/hi) 112650,1 Large galaxy star size (lo/hi) 112659,A Large galaxy ?? set same as star size ?? (lo/hi) 112663,4 Huge galaxy map width (lo/hi) 11266C,D Huge galaxy map height (lo/hi) 112675,6 Huge galaxy star spacing (lo/hi) 11267E,F Huge galaxy zoom factor (lo/hi) 112687,8 Huge galaxy star size (lo/hi) 112690,1 Huge galaxy ?? set same as star size ?? (lo/hi)
"Stars are holes in the sky from which the light of the Infinite shine through." - Confucius.

Balrokzar
Posts:6
Joined:Fri Feb 10, 2006 6:42 pm

Postby Balrokzar » Fri Feb 17, 2006 6:57 pm

Which file contains this information? The Orion.exe or one of the .LBX files?

User avatar
Lord Brazen
Site Admin
Posts:162
Joined:Mon Jul 18, 2005 10:16 pm
Location:Toronto, Canada
Contact:

Postby Lord Brazen » Sat Feb 18, 2006 12:13 am

Which file contains this information? The Orion.exe or one of the .LBX files?
Orion.exe

The file offsets are above.
"Stars are holes in the sky from which the light of the Infinite shine through." - Confucius.

MadViper
Posts:46
Joined:Wed Jan 28, 2009 11:40 am

Postby MadViper » Sun Jul 31, 2011 4:30 pm

I used your helpful manual to mess around with some Hex Values.

I alternated the Map Editor, that it creates a huge Galaxy with the amount of Stars of a "medium" galaxy. if you choose "medium" as Galaxy Size.

These are the Values i had to edit:

Image

There are some nice advantages:

- Longer distances between the stars, no more nasty 1 turn hopping between the systems anymore, you can react better if someone attacks you.
- Fewer systems to colonize (-> faster games)
- Increased usability for better fuel cell technologies (at least iridium cells are really handy, because many systems are more than 7 parsecs away from each other)

This is how it looks like:

Image

Edit: Corrected the Values, thx to catalyst_kh
Last edited by MadViper on Tue Sep 11, 2012 9:48 am, edited 2 times in total.

User avatar
Overlord2
Posts:661
Joined:Wed Jun 13, 2007 5:25 pm

Postby Overlord2 » Mon Aug 01, 2011 4:06 pm

Well, as you can see density of the stars can vary significantly in different sectors. One player can get more stars than the other...Can you ensure that stars spread evenly over the whole map?
Last edited by Overlord2 on Fri Aug 05, 2011 7:01 am, edited 1 time in total.

MadViper
Posts:46
Joined:Wed Jan 28, 2009 11:40 am

Postby MadViper » Tue Aug 02, 2011 4:52 am

Of course there can be a difference between the players in the amount of free Planets, but every player has at least 2 Systems to colonize (every home System has at least one 2. System 4 parsecs away). And there are several wormholes spread out in the Galaxy who increase significantly the possibility to expand. I use the Orange Map-Version with mapgen to modify tiny/upoor planets, so there shall usually be at least 2 useful planets in each system. With /Planets=5 there shall be about 10 useful planets for each player at least to colonize.

Furthermore we usually fill up the Galaxy with KI-Players up to 8, so there won't be many unguarded Systems for each Player anyways. The Ki Players reduce the possibility to spread across the galaxy, because they act very aggressive at the early state of the Game. (We don't allow to invade KI Planets, they have to be wiped out like Monster-Guarded Systems for further Expansion)

If you set the Galaxy with 8 Players, the map Generator restarts several times (sometimes the map Generator gnaws for about 30 seconds) until it spits out a Galaxy. I think that it cancels much too unbalanced Galaxies at his own.

I tested this combination some times, and the number of Systems any Player could colonize before he gets near to another Player don't vary much.

I don't think it is more unbalanced than in dense Galaxies.

If you start in a corner in dense galaxies you often have much fewer Systems to colonize than a Player who doesn't start in a Corner.

The best starting point usually is a System about 10 Parsecs away from a corner, where you can grab the Systems further to the middle and then get all Systems in the corner, because there is no other Player there.

I remember the last multiplayer Game in an normal huge Galaxy, where one Player got 14 Systems (starting point in the top middle and there was no further player in the top right corner) and another (starting point bottom left corner) only 5 before he reached the border of other Players.

And if a Player should really start in an empty corner we just restart the Game.

User avatar
Overlord2
Posts:661
Joined:Wed Jun 13, 2007 5:25 pm

Postby Overlord2 » Tue Aug 02, 2011 6:04 am

This is what I say, situations with empty sectors will be happening much more frequently, thus it will result in more restarts.

Catalyst_Kh
Posts:119
Joined:Sat Aug 25, 2012 7:49 pm

Postby Catalyst_Kh » Sat Sep 01, 2012 11:06 am

There is a misprint at MadVipers screenshot - 1125FE should be set to B4, not 58, or the galaxy will not stretch vertically.

MadViper
Posts:46
Joined:Wed Jan 28, 2009 11:40 am

Postby MadViper » Fri Sep 14, 2012 8:35 am

There is a misprint at MadVipers screenshot - 1125FE should be set to B4, not 58, or the galaxy will not stretch vertically.
Corrected the values, thx! :)


Return to “Game Modifications”

Who is online

Users browsing this forum: No registered users and 35 guests