Game Crash When Sending Ships to Tholia System

Moderator: thunderchero

Forum rules
Please read the topic titles below to see if your issue matches already solved issues before creating new support ticket.
JeanLucPicard1
Commander
Commander
Posts: 343
Joined: Thu May 01, 2008 2:00 am

Game Crash When Sending Ships to Tholia System

Post by JeanLucPicard1 »

Windows Version: Windows 10
Video card/chip info: Intel HD 620
Are you useing DxWnd?: Not using DxWnd
Was Birth of the Federation running on this system prior to this install No
List any crash logs or messages you might have seen
ST:BOF Tue Oct 16 21:06:14 2018

Version Under Test: 72
File: ..\..\source\game\solarapi.c, Line: 2792, System is not dest or source of trade route
Initialize State: 31
Player Empire: 1 Starting Seed: 1539732003
Galaxy shape: 3 Galaxy Size: 1
Turn State: 20
Turn Number: 27


What have you already tried to solve the problem?
The For now, I avoid sending ships there.

Detailed description of your issue
The game will crash if I try to send a ship to the Tholia system. I am affiliated with them. I believe I may have edited the system and changed one of the planets from medium to large in UE. I made sure to change the animation.
User avatar
thunderchero
Site Administrator aka Fleet Admiral
Site  Administrator aka Fleet Admiral
Posts: 7934
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Re: Game Crash When Sending Ships to Tholia System

Post by thunderchero »

JeanLucPicard1 wrote: Tue Oct 16, 2018 9:13 pm The game will crash if I try to send a ship to the Tholia system. I am affiliated with them. I believe I may have edited the system and changed one of the planets from medium to large in UE. I made sure to change the animation.
I was going to ask what mod, but after reading this. it does not matter

UE corrupts saved games, sorry
JeanLucPicard1
Commander
Commander
Posts: 343
Joined: Thu May 01, 2008 2:00 am

Re: Game Crash When Sending Ships to Tholia System

Post by JeanLucPicard1 »

I remember there used to be a really old save game editor. I think it was simply called BOTF Save Game Editor. This one did not cause the game to crash.
User avatar
thunderchero
Site Administrator aka Fleet Admiral
Site  Administrator aka Fleet Admiral
Posts: 7934
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Re: Game Crash When Sending Ships to Tholia System

Post by thunderchero »

JeanLucPicard1 wrote: Tue Oct 16, 2018 10:09 pm I remember there used to be a really old save game editor. I think it was simply called BOTF Save Game Editor. This one did not cause the game to crash.
I have never used it before but it is still in download section in a compiled file of old editors

old editors

the only file I saw was in BOTF_SavedB15.zip

good luck, but I would expect it used same code location so it may also corrupt saved games also?
JeanLucPicard1
Commander
Commander
Posts: 343
Joined: Thu May 01, 2008 2:00 am

Re: Game Crash When Sending Ships to Tholia System

Post by JeanLucPicard1 »

I am not sure. I also seem to remember older versions of UE not corrupting saved games. I was able to go in, make changes to a system like increasing populations and changing animations with no problems.
User avatar
thunderchero
Site Administrator aka Fleet Admiral
Site  Administrator aka Fleet Admiral
Posts: 7934
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Re: Game Crash When Sending Ships to Tholia System

Post by thunderchero »

Also keep in mind that most editors use the info from turn 1, so as game progresses the saved game becomes more complicated.

so if saved game is to be edited later in the game it has a better chance to corrupt when edited. so I say if you are going to cheat do it on turn 1.

Personally I never saw any reason to cheat. take the hand you are dealt. By the way do you also give better systems for AI? lol
JeanLucPicard1
Commander
Commander
Posts: 343
Joined: Thu May 01, 2008 2:00 am

Re: Game Crash When Sending Ships to Tholia System

Post by JeanLucPicard1 »

Some of the minor races are given a lousy hand for population. I might go in and tweak their pop so making them a member or subjudging their system is worth it.

I've got the max population bonuses increased, so the AI already gets better starting systems. I also gave them 30 orbital batteries so it's not easy for other AI opponents to wipe them out early on.

Other than that, I don't see much of a reason to buff the AI. They rush buy, the Cardassians steal over 50000 credits from me every 20-30 turns, and the Klingons and Ferengi can have up to 200+ ships in their fleets by turn 150.

Other reasons to tweak. Hmmm, let's see. Oh yeah, the Vanilla Ambassador-class can barely hold it's own against a Ferengi Light raider. Now it's a true capital ship. :grin:
Ambassador_Stats.JPG
Ambassador_Stats.JPG (68.86 KiB) Viewed 7140 times
User avatar
thunderchero
Site Administrator aka Fleet Admiral
Site  Administrator aka Fleet Admiral
Posts: 7934
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Re: Game Crash When Sending Ships to Tholia System

Post by thunderchero »

LOL,

You just made my point, I never said not to stack the deck. That is what modding is all about.

Editing a saved game is normally one sided and an unfair advantage.

So if you feel "minor races are given a lousy hand for population" than edit it before you start any game.
viewtopic.php?f=112&t=2929#p8435
JeanLucPicard1
Commander
Commander
Posts: 343
Joined: Thu May 01, 2008 2:00 am

Re: Game Crash When Sending Ships to Tholia System

Post by JeanLucPicard1 »

I'm playing ECM III. I already increased the starting pop of most minors to 200, and increased the maximum planet pops to what they are in UDM III. So are you saying there's another way to increase their starting seed pop other than using UE on turn 1?
User avatar
thunderchero
Site Administrator aka Fleet Admiral
Site  Administrator aka Fleet Admiral
Posts: 7934
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Re: Game Crash When Sending Ships to Tholia System

Post by thunderchero »

the trek.exe must be hex edited.
Gowron wrote: Sat Jan 17, 2009 7:16 pm Minor Race Systems

Code: Select all

Offset    hex code                asm code

:004B4B0B 817C244CA00F0000        cmp dword[esp+4C], 0FA   // upper limit
----------
:004B4A43 817C244C14050000        cmp dword[esp+4C], 00000514   // lower limit
----------
:004B4A53 817C244C14050000        cmp dword[esp+4C], 00000514   // lower limit
----------
:004B4B7C 66837D6A07              cmp word[ebp+6A], 007   // maximum number of planets
The lower limit is 130 for minor race systems (stored as 0x514, i.e. 1300).
Note that the population capacity of the home planet does not count.
at 0xb3f0f change A0 0F = (4000 = 400) to desired upper limit
at 0xb3e47 change 14 05 = (1300 = 130) to desired lower limit
at 0xb3e57 change 14 05 = (1300 = 130) to desired lower limit

changing bonus levels with UE has no effect on these values and only changes home planet, not other planets in minor system.

so if trek.exe is un-edited (ECM3 is un-edited) it could always be as low as 130 pop (max of 400 pop + home planet) on minor systems regardless of what you edit with UE.
JeanLucPicard1
Commander
Commander
Posts: 343
Joined: Thu May 01, 2008 2:00 am

Re: Game Crash When Sending Ships to Tholia System

Post by JeanLucPicard1 »

I feared you would mention hex editing. It is not my strong point. I have also used hex editors like Ultra Edit 32 and online hex editors. I can never find the offset that Gowron lists for editing. As you can see in the pic I posted, I'm in the b3 range and I can't find the offsets he lists.
trek_exe.jpg
trek_exe.jpg (105.57 KiB) Viewed 7128 times
User avatar
thunderchero
Site Administrator aka Fleet Admiral
Site  Administrator aka Fleet Admiral
Posts: 7934
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Re: Game Crash When Sending Ships to Tholia System

Post by thunderchero »

JeanLucPicard1 wrote: Thu Oct 18, 2018 11:47 pm I have also used hex editors like Ultra Edit 32 and online hex editors.
I also use ultra edit so this should be simple to explain

Note; backup trek.exe to safe/different location in case of error.

first open trek.exe with ultra edit

next at top you will see several tabs at top select "search" tab from dropdown menu select "goto line/page/bookmark"
ultra.jpg
ultra.jpg (301.51 KiB) Viewed 7122 times
in new small window copy and paste the location you want to goto
goto.jpg
goto.jpg (287.63 KiB) Viewed 7122 times
then select ok

this will take you directly to the proper location
A0.jpg
A0.jpg (342.34 KiB) Viewed 7122 times
next you need to use UE to calculate the new value you what to change it to. Use tools tab, then select other/calculator

in this case value is 10x normal value (it is divided later in code for rounding) so if you want 600 enter 6000
600.jpg
600.jpg (50.7 KiB) Viewed 7122 times
then change (in this case A0 0F to 70 17)

then make other changes in same way at different locations and save trek.exe

good luck
thunderchero
JeanLucPicard1
Commander
Commander
Posts: 343
Joined: Thu May 01, 2008 2:00 am

Re: Game Crash When Sending Ships to Tholia System

Post by JeanLucPicard1 »

OK, I got HxD since Ultra Edit was on my now defunct W7 laptop. It has the same search function. I searched for the offset 004B4B0B and the hex code 817C244CA00F0000, copied and pasted for each string, and the hex editor will just tell me it can't find "004B4BOB" or whatever code I enter from the ones cited.
User avatar
thunderchero
Site Administrator aka Fleet Admiral
Site  Administrator aka Fleet Admiral
Posts: 7934
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Re: Game Crash When Sending Ships to Tholia System

Post by thunderchero »

ok most of above is same with HxD

but use search tab and select "goto"

The value in Gowrons quote are assembly offsets to use with hex editor you would need to convert address.

but I already gave you the 3 converted addresses, except HxD does not use the "0x" like ultra edit excepts

at b3f0f change A0 0F to 70 17 (upper limit)
at b3e47 change 14 05 to A0 0F (lower limit)
at b3e57 change 14 05 to A0 0F (lower limit)

Note; do not make upper and lower limits too close of value this may cause galaxy generation to crash I suggest to try some thing like 600 (70 17) upper limit and 400 (A0 0F) lower limit if you want large minor systems.
JeanLucPicard1
Commander
Commander
Posts: 343
Joined: Thu May 01, 2008 2:00 am

Re: Game Crash When Sending Ships to Tholia System

Post by JeanLucPicard1 »

Well, I think I finally got it after all these years I finally got it thanks to your help. The lowest minor system had a pop of 425 and the highest had a pop of 820. Thank for the intuitive tutorial. You are a gentleman and a scholar. This should be stickied on the board.
Post Reply

Return to “Submit a support ticket for Windows (all versions)”