Solved: Energy Screen Project
Moderator: thunderchero
Re: Solved: Energy Screen Project
Sorry I'm a late bloomer but all I can say is WOW. Great job QD in cracking this years old mystery. I plan on implementing this into my mod of UDM3 to see if it works but as Peter has already tried it in his TOS mod I'm sure it will work in pretty much anything. Of course this will go into UDM4 as well. I can't offer any help with making new graphics yet (since I am the noob modder here lol) I can only offer a quote from Q "You have my everlasting gratitude."
-
- BORG Trouble Maker
- Posts: 2323
- Joined: Sat Jan 03, 2009 3:00 am
- Location: the 36th Chamber
Re: Solved: Energy Screen Project
that'd be awesome!!1 But I dunno how it may look afterwards. You might have to do a lot of artwork to make it look good again. But it's definitely worth the shot!QuasarDonkey wrote:Do you think anyone would be interested in switching all BotF graphics to 1024x768?
- Tethys
- Past Administrator
- Posts: 2404
- Joined: Fri Jul 18, 2008 2:00 am
- Location: Your mom's bed ;)
- Contact:
Re: Solved: Energy Screen Project
Oh My God... QD amazing work here, I havent tested it out, but it definitely looks good from the reviews Thank you for all the hard work.
One thing I must ask does this rewrite ALL wdfs? I know you mentioned moving them to another part of trek.exe
One thing I must ask does this rewrite ALL wdfs? I know you mentioned moving them to another part of trek.exe
- thunderchero
- Site Administrator aka Fleet Admiral
- Posts: 7962
- Joined: Fri Apr 25, 2008 2:00 am
- Location: On a three month training mission, in command of the USS Valiant.
Re: Solved: Energy Screen Project
Hi all,
I played with my wdf files a little and corrected 1 text that was out of place on klingons and also moved everything.
I made room for the special and defense text and also set wdf file up so it would place them space 1 row 1, then space 1 row 2 then space 2 row 1 ect instead of row 1 space 1 - 7 then row 2 space 1 - 7.
new_wdf.rar
thunderchero
I played with my wdf files a little and corrected 1 text that was out of place on klingons and also moved everything.
I made room for the special and defense text and also set wdf file up so it would place them space 1 row 1, then space 1 row 2 then space 2 row 1 ect instead of row 1 space 1 - 7 then row 2 space 1 - 7.
new_wdf.rar
thunderchero
- Flocke
- BORG Trouble Maker
- Posts: 3258
- Joined: Sun Apr 27, 2008 2:00 am
- Location: Hamburg, Germany
- Contact:
Re: Solved: Energy Screen Project
Hmm, could be that they included some precalculated values but never used them. E.g. for sinus and cosinus values often are precalculated in games.QuasarDonkey wrote:But regards that data block at 68A000, it's about 78 KB of unused memory (it's filled with floating point data). IDA shows no cross-references to it, and I've zeroed it out and BotF still runs perfectly. I assume it's left-overs from a development feature. It's odd that an entire segment of the Trek.exe is unused. As a side project, I'll extract the data and do some analysis, I'm thinking it might be 3D vertex data. Or maybe it's an easter egg
As for the dll sdk, think currently there's no need, but if there is, the most simple way in my opinion is by using a dll wrapper on an already existing dll (just delegating calls to original dll), and during an initial call to the dll, write a single pointer to an unused dataoffset of botf referencing a function pointer array of additional dll functions. Thereafter functions of the dll can easily be called directly from trek.exe. That's an easy thing and if someone needs more info on this I'm happy to help.
Also, now that you found a way to adjust all ui, I think it's a great idea to increase the resolution to mpr max.
- QuasarDonkey
- Code Analyst
- Posts: 433
- Joined: Tue Jul 26, 2011 8:29 pm
- Location: Ireland
Re: Solved: Energy Screen Project
No, it's only the 5 WDFs for the energy screen, csenergy.wdf, fsenergy.wdf, hsenergy.wdf, ksenergy.wdf, and rsenergy.wdf. I'll post all the technical details later today. I think I've kept people in the dark for too long.Tethys wrote:One thing I must ask does this rewrite ALL wdfs? I know you mentioned moving them to another part of trek.exe
I was thinking that, but I already found a sine/cosine table in Trek.exe. I'm gonna plot the data later to see what it looks like. But the data is not one giant block of floats, it's a whole lot of small blocks, with some numbers, including the block size in bytes. Also I noticed the trek.exe icon is stored at the end of this section. I don't do much Windows programming, but IIRC you can store "resources" in an application, i.e. attach any files you want. Maybe this is the resources section?Flocke wrote:Hmm, could be that they included some precalculated values but never used them. E.g. for sinus and cosinus values often are precalculated in games.
On the note of maxing out the MPR resolution, I think we should get another project started for this. I'll post the details later, and maybe I'll try make up one screen. What I'm thinking is to enlarge the screens without upsampling, e.g. for the main galactic screen, we could enlarge the area of the map left and down, but leave the width of the left taskforces pane and the height of the solarsystem map at the bottom alone. That way, the area of the galaxy map would be much larger, and the taskforce list would be longer. It should make playing on large galaxies much nicer. I might just make up a prototype screen to show what I mean.
- thunderchero
- Site Administrator aka Fleet Admiral
- Posts: 7962
- Joined: Fri Apr 25, 2008 2:00 am
- Location: On a three month training mission, in command of the USS Valiant.
Re: Solved: Energy Screen Project
Just a quick note, earlier we did find enough space by relocating other areas so the unused section does not have to be used.
info at the bottom of this post it would allow 14 14
viewtopic.php?f=4&t=2078&p=30767&sid=86 ... 877#p30767
thunderchero
info at the bottom of this post it would allow 14 14
viewtopic.php?f=4&t=2078&p=30767&sid=86 ... 877#p30767
thunderchero
- Tethys
- Past Administrator
- Posts: 2404
- Joined: Fri Jul 18, 2008 2:00 am
- Location: Your mom's bed ;)
- Contact:
Re: Solved: Energy Screen Project
Also would make a larger screen for combat, and maybe I can finally do something for combat (UI) that Ive wanted to since I got my hands on the GUI editor in UEQuasarDonkey wrote:On the note of maxing out the MPR resolution, I think we should get another project started for this. I'll post the details later, and maybe I'll try make up one screen. What I'm thinking is to enlarge the screens without upsampling, e.g. for the main galactic screen, we could enlarge the area of the map left and down, but leave the width of the left taskforces pane and the height of the solarsystem map at the bottom alone. That way, the area of the galaxy map would be much larger, and the taskforce list would be longer. It should make playing on large galaxies much nicer. I might just make up a prototype screen to show what I mean.
I will help where I can, but I have much more can't time then I do can time.Flocke wrote:Also, now that you found a way to adjust all ui, I think it's a great idea to increase the resolution to mpr max.
- QuasarDonkey
- Code Analyst
- Posts: 433
- Joined: Tue Jul 26, 2011 8:29 pm
- Location: Ireland
Re: Solved: Energy Screen Project
Well there's no rush with this. I'm not expecting it to be an overnight thing. I was planning on posting my info, and basically make it an open project where anyone can submit graphics/WDFs.
- QuasarDonkey
- Code Analyst
- Posts: 433
- Joined: Tue Jul 26, 2011 8:29 pm
- Location: Ireland
Re: Solved: Energy Screen Project
I just updated the main post with some details on how it works. You'll have to decide if I explained it well tho
- Tethys
- Past Administrator
- Posts: 2404
- Joined: Fri Jul 18, 2008 2:00 am
- Location: Your mom's bed ;)
- Contact:
Re: Solved: Energy Screen Project
Interesting stuff there especially about the CivConf screen. Wonder what that is for? Sociology tie in?
- QuasarDonkey
- Code Analyst
- Posts: 433
- Joined: Tue Jul 26, 2011 8:29 pm
- Location: Ireland
Re: Solved: Energy Screen Project
No, not sociology. Looking at some of the data for that screen, it has words like "PREWARP", "INTERSTELLAR", "INTERGALACTIC", "AUTOMATED" and "ADVANCED".Tethys wrote:Interesting stuff there especially about the CivConf screen. Wonder what that is for? Sociology tie in?
Looking at the wdfObject descriptors for this screen in Trek.exe,
Code: Select all
<13, 146, 4>
<13, 147, 8>
<13, 148, 0Ch>
<13, 149, 10h>
<13, 150, 14h>
<13, 151, 18h>
<14, 152, 1Ch>
<2, 153, 20h>
<2, 154, 24h>
My guess is that originally there were separate screens for setting up galaxy size/shape, and the CivConf screen for setting up empire starting techlevels, etc.
Of course, the retail release of BotF is missing the WDF/picture files. I just thought it'd be nice to resurrect the screen for fun, by reconstructing civconf.wdf using images from some of the other screens.
- Tethys
- Past Administrator
- Posts: 2404
- Joined: Fri Jul 18, 2008 2:00 am
- Location: Your mom's bed ;)
- Contact:
Re: Solved: Energy Screen Project
Prev discussion about Build Queue moved here: viewtopic.php?f=4&t=2219&p=30820&sid=c6 ... 097#p30820
- QuasarDonkey
- Code Analyst
- Posts: 433
- Joined: Tue Jul 26, 2011 8:29 pm
- Location: Ireland
Re: Solved: Energy Screen Project
New energy screen patchtool, with GUI!!
This version lets you separately patch Trek.exe and the WDFs, which may be useful.
- Quintaine
- Lieutenant-Junior Grade
- Posts: 68
- Joined: Mon Apr 19, 2010 2:00 am
- Location: Germany, Berlin
Re: Solved: Energy Screen Project
Hello every one,
i make a new mod for Stbof with 1366 Pix (Basemod is: ECM in 1366 Pix) and have a problem with just used this tool. Unfortunately, I got the following error message when starting the game: "Mss32.dd is not installed." Please reinstall the file. The file is available. In other words, this tool does not work and causes the trek.exe to crash.
I need 14 Energie holder for specails and defence in Energymenu.
how can me help.
Thank you
For German Speaker:
Guten morgen liebe Freunde,
ich habe ein kleines Problem. Wollte mein Mod auf 1366 Pix bringen (als Basis Mod ausgesucht: "ECM 1366 Pixel Mod") und auch wieder neue Gebäude editieren. Dami ich das machen kann, bruache ich 14 Energieslots für Verteidigung und Spezialgebäude. Nachdem ich mit hilfe dieses Tools die betreffenden Dateien bearbeitet hatte, schmiert mir anschließend die trek.exe ab. Der Grund ist das eine Datei: "mss55.dll" nicht existiert und neu installiert werden muss. Was quatsch ist, denn die Datei ist vorhanden. SO wie es aussieht scheint das Tool nicht mehr zu gehen. Kann mir einer helfen?
Danke Leute.
i make a new mod for Stbof with 1366 Pix (Basemod is: ECM in 1366 Pix) and have a problem with just used this tool. Unfortunately, I got the following error message when starting the game: "Mss32.dd is not installed." Please reinstall the file. The file is available. In other words, this tool does not work and causes the trek.exe to crash.
I need 14 Energie holder for specails and defence in Energymenu.
how can me help.
Thank you
For German Speaker:
Guten morgen liebe Freunde,
ich habe ein kleines Problem. Wollte mein Mod auf 1366 Pix bringen (als Basis Mod ausgesucht: "ECM 1366 Pixel Mod") und auch wieder neue Gebäude editieren. Dami ich das machen kann, bruache ich 14 Energieslots für Verteidigung und Spezialgebäude. Nachdem ich mit hilfe dieses Tools die betreffenden Dateien bearbeitet hatte, schmiert mir anschließend die trek.exe ab. Der Grund ist das eine Datei: "mss55.dll" nicht existiert und neu installiert werden muss. Was quatsch ist, denn die Datei ist vorhanden. SO wie es aussieht scheint das Tool nicht mehr zu gehen. Kann mir einer helfen?
Danke Leute.