Modding Help Please

This forum is for outdated or irrelevant Modding Information that may or may not be 3 months old.

Moderator: thunderchero

User avatar
Tethys
Past Administrator
Past Administrator
Posts: 2404
Joined: Fri Jul 18, 2008 2:00 am
Location: Your mom's bed ;)
Contact:

Modding Help Please

Post by Tethys »

Hi. I am trying to import 2 ship models into Vanilla BotF, the Galaxy and Galaxy-X from the AAM just to see if I could successfully import a few ships.

Long story short, I believe I have failed. I read the tuts, replaced the ships using UE 0.7.0dev12a.

Saved the stbof.res and modded trek.exe (UE prompted me to do, so I let it do it.)

Went into game, no new images or models... :cry:

So I went back into UE and edited ship stats, made the Galaxy X an upgrade for the Galaxy (Cmd I, Cmd II, Cmd III) and I removed Heavy Cruiser II. I thought maybe that would help...

It didnt...

I got this log:
ST:BOF Wed Sep 23 11:58:16 2009

Version Under Test: 72
File: ..\..\source\game\military\readship.c, Line: 209, num ships in binary not same as SHIPLIST.H

Initialize State: 15
Player Empire: 1 Starting Seed: 0
Galaxy shape: 0 Galaxy Size: 0
How do I fix this? I have little experience in modding other then personal stats change.... plz help! :(

P.S. I hope to soon make a mod from scratch using people's models, so I will ask permissions before I decide on whether or not I am able to get these ships to even work. Thanks![/quote]
Last edited by Tethys on Mon Oct 26, 2009 9:41 pm, edited 6 times in total.
Not for the weak of heart...
Galaxies MOD v0.4.0 <--- GALM/Galaxies Mod latest version
User avatar
DCER
Code Master
Code Master
Posts: 683
Joined: Sat Apr 26, 2008 2:00 am

Post by DCER »

Looks like a bug in UE. I'll see if I can find the error.
User avatar
DCER
Code Master
Code Master
Posts: 683
Joined: Sat Apr 26, 2008 2:00 am

Post by DCER »

Ok, the number of ships wasn't updated when you (presumably) extended the ship list. You can fix the number manually at 0x0006F02F in trek.exe

or you can try creating a copy of a ship then removing this copy in UE (this causes UE to set the value in trek.exe)


I've tried adding a ship from Breen's pack using dev12a and it worked without problems, so I don't know why it didn't work for you.

You can check error.log in case there are any errors listed there.

Also make sure you have trek.exe in the same folder as stbof.res, otherwise UE edits the one listed under settings as the default. When it asks to save trek.exe it should include the path to it, so you can check then.

Let me know if any of this helps :/
User avatar
thunderchero
Site Administrator aka Fleet Admiral
Site  Administrator aka Fleet Admiral
Posts: 7936
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Post by thunderchero »

I just tested with this ship pack.

galaxy.zip

with no problems

Did you create a ship pack from AAM first?

Also check UE options to comfirm it is editing the correct trek.exe

thunderchero
User avatar
Tethys
Past Administrator
Past Administrator
Posts: 2404
Joined: Fri Jul 18, 2008 2:00 am
Location: Your mom's bed ;)
Contact:

Post by Tethys »

Ultimate Editor 0.7.0dev12a - 10:32:13 23.09.2009
java.io.FileNotFoundException: File not found: t02_a.hob
at ue.edit.res.Stbof.getInternalFile(Stbof.java:1269)
at ue.gui.stbof.ShipModelGUI$ExportTask.doInBackground(ShipModelGUI.java:1814)
at ue.gui.stbof.ShipModelGUI$ExportTask.doInBackground(ShipModelGUI.java:1)
at javax.swing.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at javax.swing.SwingWorker.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Ultimate Editor 0.7.0dev12a - 10:42:03 23.09.2009
java.io.FileNotFoundException: File not found: x
at ue.edit.res.Stbof.getInternalFile(Stbof.java:1269)
at ue.gui.stbof.ShipModelGUI$ExportTask.doInBackground(ShipModelGUI.java:1841)
at ue.gui.stbof.ShipModelGUI$ExportTask.doInBackground(ShipModelGUI.java:1)
at javax.swing.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at javax.swing.SwingWorker.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Ultimate Editor 0.7.0dev12a - 11:28:36 23.09.2009
java.lang.NullPointerException
at ue.gui.stbof.ShipGUI$19.actionPerformed(ShipGUI.java:1308)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Ultimate Editor 0.7.0dev12a - 11:29:06 23.09.2009
java.lang.NullPointerException
at ue.gui.stbof.ShipGUI$19.actionPerformed(ShipGUI.java:1308)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Ultimate Editor 0.7.0dev12a - 12:18:37 23.09.2009
java.lang.Exception: Number either to big, too small or contains invalid characters.
at ue.gui.special.CalcGUI$1.actionPerformed(CalcGUI.java:220)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
java.util.NoSuchElementException
at java.net.NetworkInterface$1checkedAddresses.nextElement(Unknown Source)
at java.net.NetworkInterface$1checkedAddresses.nextElement(Unknown Source)
at ue.util.GameMonitor.getLocalAddress(GameMonitor.java:224)
at ue.gui.special.MonitorGameGUI.<init>(MonitorGameGUI.java:74)
at ue.edit.Special.edit(Special.java:120)
at ue.gui.MainMenu$OpenSpecial.actionPerformed(MainMenu.java:584)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Ultimate Editor 0.7.0dev12a - 15:14:52 23.09.2009
java.lang.NullPointerException
at ue.util.ShipModelPackage.<init>(ShipModelPackage.java:80)
at ue.gui.stbof.ShipModelGUI$2.actionPerformed(ShipModelGUI.java:287)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Not for the weak of heart...
Galaxies MOD v0.4.0 <--- GALM/Galaxies Mod latest version
User avatar
Tethys
Past Administrator
Past Administrator
Posts: 2404
Joined: Fri Jul 18, 2008 2:00 am
Location: Your mom's bed ;)
Contact:

Post by Tethys »

thunderchero wrote:I just tested with this ship pack.

galaxy.zip

with no problems

Did you create a ship pack from AAM first?

Also check UE options to comfirm it is editing the correct trek.exe

thunderchero
Yes i created ship packs from AAM, UDM3, and UM4...
Not for the weak of heart...
Galaxies MOD v0.4.0 <--- GALM/Galaxies Mod latest version
User avatar
thunderchero
Site Administrator aka Fleet Admiral
Site  Administrator aka Fleet Admiral
Posts: 7936
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Post by thunderchero »

sounds like you are having fun with all those errors.

Were all them while adding galaxy and galaxyX? Your ship pack maybe corupt.

I just extracted galaxy and galaxyX from AAM and added them to 1.0.2 with no problems.

how many ships are in the ship pack you are using? 50 models is about max that should be in any single ship pack.

thunderchero
User avatar
Tethys
Past Administrator
Past Administrator
Posts: 2404
Joined: Fri Jul 18, 2008 2:00 am
Location: Your mom's bed ;)
Contact:

Post by Tethys »

No more then 20 in each pack.

And even with downloaded ones I am getting the same thing.

Could it be my version of UE? I am using 0.7.0dev12a, should I be using perhaps a more stable version? I haven't encountered any other errorlogs.

I even went as far as a complete clean reinstall of BotF Multi 1.0.2 and new copy of UE 12a... maybe its just me... I cant seem to get this right :(

Is there something else I have to do to get these models to show up in the game?
I am opening stbof.res with UE, open ship pack, select ship to import and copy over ship i want to replace, save, save trek.exe. Did i miss something? :/
Not for the weak of heart...
Galaxies MOD v0.4.0 <--- GALM/Galaxies Mod latest version
User avatar
DCER
Code Master
Code Master
Posts: 683
Joined: Sat Apr 26, 2008 2:00 am

Post by DCER »

Ultimate Editor 0.7.0dev12a - 10:32:13 23.09.2009
java.io.FileNotFoundException: File not found: t02_a.hob
This one is normal. The Calamarain is a special case as it's missing models and botf only displays the texture in combat. UE doesn't know how to export ships without models.
Ultimate Editor 0.7.0dev12a - 10:42:03 23.09.2009
java.io.FileNotFoundException: File not found: x
This one shouldn't have happened. When UE deletes textures it doesn't rewrite texture.lst because it would mean indexes in all hob files would have to be reset. Instead it replaces the texture name in texture.lst with an x (marking a free slot). When you delete a model, UE checks if any of the textures it uses are in use and if not it deletes them as well. This error means that the hob you were trying to export was using a deleted texture. If you were exporting from a mod, it means that mod has a bug. If not it's a problem with UE, but I would need to know the exact steps you did.

I'll check the rest.

I've tested adding with dev12a and it works. Maybe it's a problem with the version of trek.exe. If you haven't already, install Joker's patch (copy stbof.res from the english folder first to get back vanilla version). Everything is done on that version of trek.exe here, UE's support for the old version might have more bugs as it's much less tested.

EDIT: you wrote you're using the multi installer. Unless I'm wrong - it already has Joker's patch applied so disregard the above paragraph :)
User avatar
Tethys
Past Administrator
Past Administrator
Posts: 2404
Joined: Fri Jul 18, 2008 2:00 am
Location: Your mom's bed ;)
Contact:

Post by Tethys »

Hi DCER,
This one shouldn't have happened. When UE deletes textures it doesn't rewrite texture.lst because it would mean indexes in all hob files would have to be reset. Instead it replaces the texture name in texture.lst with an x (marking a free slot). When you delete a model, UE checks if any of the textures it uses are in use and if not it deletes them as well. This error means that the hob you were trying to export was using a deleted texture. If you were exporting from a mod, it means that mod has a bug. If not it's a problem with UE, but I would need to know the exact steps you did.
I did export from mods, but then I also tried from downloads that Thunderchero linked to in his Ship Packs thread. So I dont think that would be the issue...


Even after a clean install of 1.0.2 did the imports still not work.

Thunderchero has suggested that I acquire the BOTF_1.0.2_English_German_b.exe from the site here, which I am downloading now. Thanks!
Not for the weak of heart...
Galaxies MOD v0.4.0 <--- GALM/Galaxies Mod latest version
User avatar
Tethys
Past Administrator
Past Administrator
Posts: 2404
Joined: Fri Jul 18, 2008 2:00 am
Location: Your mom's bed ;)
Contact:

Post by Tethys »

First of all:

Thank you Thunderchero for staying with me and helping me! I can now import ships into BotF using UE! YAY!

Next:

Thanks DCER for your input and for helping Thunderchero diagnose my problem! Thanks!

Problem Status: SOLVED :D
Not for the weak of heart...
Galaxies MOD v0.4.0 <--- GALM/Galaxies Mod latest version
User avatar
thunderchero
Site Administrator aka Fleet Admiral
Site  Administrator aka Fleet Admiral
Posts: 7936
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Post by thunderchero »

Hi Everyone,

This was a strange problem.

first UE was working the way it should and was saving correct files.

The problem was install locations (plural) Tethys at some point had problems with multi 1.0.2 instead of uninstalling and reinstalling he created new folder and install second full install of main multi installer.

now to what I think happened;

install "A" original install path C:\botf
install "B" replacement install path C:\botfa

Tethys was editing install "B" with new ships, stbof.res and trek.exe save to correct location. They would have worked except....
When install "B" trek.exe was started, it was using install "A" stbof.res that was unedited. This gave first crash log for differant shiplist.

After that it just got worse until everything was backed up and all botf related files removed and reinstalled. and saves copied back into install paths.

Then ship adding went smooth with no problems.

thunderchero

edit;
DCER wrote:
Ultimate Editor 0.7.0dev12a - 10:42:03 23.09.2009
java.io.FileNotFoundException: File not found: x
This one shouldn't have happened. When UE deletes textures it doesn't rewrite texture.lst because it would mean indexes in all hob files would have to be reset. Instead it replaces the texture name in texture.lst with an x (marking a free slot). When you delete a model, UE checks if any of the textures it uses are in use and if not it deletes them as well. This error means that the hob you were trying to export was using a deleted texture. If you were exporting from a mod, it means that mod has a bug. If not it's a problem with UE, but I would need to know the exact steps you did.
He exported ships from an older version of UDM that had this problem.
And got this error many time when scrolling through gif files in texture screen when it tried to pass by x
When I selected next gif on list it went scrolling again.
No hob was assigned to texture.
This problem has now been fixed in UDMdev3 by replacing texture and palette.lst's
User avatar
DCER
Code Master
Code Master
Posts: 683
Joined: Sat Apr 26, 2008 2:00 am

Post by DCER »

Glad you got it working.
thunderchero wrote: He exported ships from an older version of UDM that had this problem.
And got this error many time when scrolling through gif files in texture screen when it tried to pass by x
When I selected next gif on list it went scrolling again.
No hob was assigned to texture.
This problem has now been fixed in UDMdev3 by replacing texture and palette.lst's
Thanks, it shouldn't be showing the X-es. I'll change the check to ignore anything that doesn't end with ".gif"
User avatar
Tethys
Past Administrator
Past Administrator
Posts: 2404
Joined: Fri Jul 18, 2008 2:00 am
Location: Your mom's bed ;)
Contact:

Post by Tethys »

Ok, rather than creating a new topic, ive decided to just ask here:


When I extend the price of a ship beyond a certain point (i want to say around 40,000-45,000 credits) it gives a negative buying value in game. And if im not mistaken, a ship cannot exceed ~64,000 or so credits? I was wondering if there is a fix in hex that can be done to extend credits and get the buy screen to show "Buy (item) for 55,000 credits" instead of "Buy (item) for -10,000 credits?"

One other thing is the building upgrades costs, where is the hex and fix to allow buildings over that certain amount of credits to be upgraded when bought? Thanks, all help is appreciated!

Tethys
Not for the weak of heart...
Galaxies MOD v0.4.0 <--- GALM/Galaxies Mod latest version
User avatar
thunderchero
Site Administrator aka Fleet Admiral
Site  Administrator aka Fleet Admiral
Posts: 7936
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Post by thunderchero »

I think this is topic you are looking for but requiers hex editing

viewtopic.php?name=Forums&file=viewtopic&t=464

Also do not forget page 2 has fix for display of ship cost.

thunderchero
Post Reply

Return to “Modding Information Archive”