×
Spam Prevention - Please Read! (23 Apr 2021)

Due to a problem with spammers the rules for posting in the forums have changed for new users.

Newly registered users won't have their posts published until a moderator approves them.

Fixing the Screens(Work flow)

More
1 year 3 months ago - 1 year 3 months ago #1421 by Slippery Jim
Replied by Slippery Jim on topic Fixing the Screens(Work flow)
New thought: I never explored the differences with the original single CD version of the game from the 2 CD tactical version. Did it have a modified Menu.dat? Will an LR mod designed for the 2 CD version screw up slightly on the 1 CD version?

Please Log in or Create an account to join the conversation.

More
1 year 3 months ago - 1 year 3 months ago #1422 by Copy-Cat
Replied by Copy-Cat on topic Fixing the Screens(Work flow)
If I remember correctly the patches that installed multiplayer capabilities overwrote the menu.dat.

Finding someone running the 1 cd version that is willing to reinstall is going to be a challenge.

Please Log in or Create an account to join the conversation.

More
1 year 3 months ago #1423 by Slippery Jim
Replied by Slippery Jim on topic Fixing the Screens(Work flow)
I have the 1 CD version on my laptop. Will compare tomorrow probably.

Please Log in or Create an account to join the conversation.

More
1 year 3 months ago - 1 year 3 months ago #1426 by Slippery Jim
Replied by Slippery Jim on topic Fixing the Screens(Work flow)
No differences. Looked at the tactics CD and it is totally self contained and uses it's own executable.

Always good to be extra careful.

Update: I recruited my kid to make a python script to make the processing of the menu.dat easier. There are a ton of lines to process for the new X,Y coordinates and my old method was too slow.

Please Log in or Create an account to join the conversation.

More
1 year 3 months ago - 1 year 3 months ago #1429 by Copy-Cat
Replied by Copy-Cat on topic Fixing the Screens(Work flow)
I couldn't let it go and after reading the post on the loading images and potential fix for em. I decided to give it another shot.

I ran some test and created a 800 x600 LC_Callup_background screen and ran it in 1366 x 768. The results made me rethink the current solution for this post and I am going to research it further. The 800 x 600 callup background was centered without the need to manually recenter. This tells me that somewhere it is being centered.

I played with the con settings and wrote my observations.
prompt LanLobby LanLobby LC_Callup_background 0 0 1366 768 0 0
The screen will run with all the values replaced with 0's; Why?
The con files are run dynamically, and the values they load are not loaded into memory, meaning they are loaded as needed. When the game needs to load a screen it loads a con file, passes in values, but the values are all ignored.

Test this for yourself.
make a mod with a con file. I chose the lanlobby.con, run the game , and create a Multiplayer>Lan and click GO!.
go back to your mod and open the con file. Add a 1 to the file name, save and go back into game. Go to main and recreate your game and notice the image is no longer showing up.

This gave me the location in the assembly code where I can throw an exception and crash the game. If I remove all values save and try again the game crashes. Create a software breakpoint at this location, step thru and watch the values being passed in, to see where and why they are ignored and what is loading in its place. Hopefully it is loaded from exe, find location and chage value to see if it shoots it up to the corner of the screen. (I know I know) this is not the desired result but I'm trying to break it to find the value, if its 0 or 1 or screenRect/2 or what ever it is.

I will continue and post my findings.

Please Log in or Create an account to join the conversation.

More
1 year 3 months ago - 1 year 3 months ago #1430 by Slippery Jim
Replied by Slippery Jim on topic Fixing the Screens(Work flow)
Yes, I was aware the game auto-centered the multiplayer screens. With those screens I don't manually center them. I actually have to do the opposite - I have to manually reset the top left to 0,0 by subtracting from the coordinates. The game ignores the top line coordinates but it does not ignore the rest of the entries that come after the top line.

I was aware the game ignored the top line numbers after the .bmp title but I always added the info because I was worried the game needed it at some point. I remember long ago deciding to follow their example just because it is "good form" and because it helped me keep track of which file was which. Until you posted I completely forgot all about that. It has been 10 years since I touched some aspects.

After reading your post I want to smack you upside the head (benny hill style) because I have been trying to get you to look at the .exe this whole thread!

Please Log in or Create an account to join the conversation.

More
1 year 3 months ago - 1 year 3 months ago #1432 by Copy-Cat
Replied by Copy-Cat on topic Fixing the Screens(Work flow)
Messing around with the con files I think i may have found and more elegant solution jump on mate!B)

UPDATE:
The position of the image can be anywhere ya want and configured within the con file.
prompt LanLobby LanLobby
it seems to me at the moment that this code is a placeholder or namespace with unused values.

so I removed the use of this image by replacing the code with this code
prompt LanLobby LanLobby BeGoneFromMe! 0 0 0 0 0 0

and then added to the bottom of the con file this.
promptctrl "sprite 99 1366 768 0 (LC_Callup_background -400 -103 966 665 1 1 1 LC_Callup_background 1 1 0 1)"
Just add this new sprite to each menu with the image and position you want. Add it to the bottom of the con so it is treated as background. I was then able to use any image I wanted and stretch it to fit the screen.

Still working on to find a more elegant solution. Looking thru the exe now..

This could potentially fix the menu lag issues too.

Please Log in or Create an account to join the conversation.

More
1 year 3 months ago #1433 by Slippery Jim
Replied by Slippery Jim on topic Fixing the Screens(Work flow)
Hmmm, doing funky things like that sounds like a bad idea to me upon first impressions.

Please Log in or Create an account to join the conversation.

Time to create page: 0.454 seconds
Powered by Kunena Forum