Home » SIRTECH CLASSICS » Jagged Alliance: Unfinished Business » Vanilla Modding » General modding query regarding extending aim Link length
General modding query regarding extending aim Link length[message #186445] Tue, 27 May 2008 01:25 Go to next message
firefly28

 
Messages:55
Registered:May 2008
Hiya , nothing to do with compilation this time hehe Smile

Everything seems to be running well and I verified I was able to mod by doing something simple, i.e you know the laptop? well I altered the A.I.M link on the laptop, you know the one that is just above or below IMP, I changed AIM for Fireflys Crazy MERC House. It worked Smile silly I know but I wanted to see the max amount of characters it would take onscreen, the characters seem to be there but some are chopped off because of the length of the graphic and Im just curious if it would be possible to extend that graphic a little more to fit the text on?

Im looking in Aim.c , I see lots of things like #Define Flowers.... 44 etc, just wandering where the dimensions are kept for the part of the laptop I altered.

I am going to play the game for a bit now Smile Its just been a good day for me getting things working so I kept going hehe.
Re: General modding query regarding extending aim Link length[message #186449] Tue, 27 May 2008 02:07 Go to previous messageGo to next message
Shanga

 
Messages:3507
Registered:January 2000
Location: Danubia

Hacking the laptop to support the new resolutions (800x and 1024x) would be a nice project to start with. You should also take a look at LAPTOP.SLF ... It's where the images (sti's) for the laptop are kept. The exe probably only defines where exactly on screen are the buttons and things like that.


Re: General modding query regarding extending aim Link length[message #186451] Tue, 27 May 2008 02:49 Go to previous messageGo to next message
firefly28

 
Messages:55
Registered:May 2008
Ok thanks Smile yeah I was mucking around and ended up having stuff half way off screen lol, there was a point though so I see what the purpose of certain code is.

Files Ive been messing about with

Aim.c
Laptop.c
Laptop.h
Aimlinks.c

I also noticed that STI files get loaded so Im thinking those are the physical images in a custom format(Just guess though Smile .......actually dow! See you mention that in your post Smile )

Im more or less just messing about with things though so I will check out that LAPTOP.slf

I got that file in my installed JA 2 gold i.e c:\progs\ja2ggold\laptop.slf

It seems to be encrypted or something, do we have access to the slf files source or is it a case of hacking them with a hex editor and the like?

At the bottom I notice SLI files listed in the file Smile Still not sure about how I could manipulate them. (I didnt think I would be able or even allowed to open the game sli files, thats what I actually thought the source was initially , source so you could mess with all but I can see why they wouldnt do it that way . )

edit: there are some slf viewers on the web actually (Just hope using those aint a prob, not even sure if Im barking up the wrong tree but the whole reason Im doing this is just to figure stuff out Smile Its not often with an actual commercial app or game that I can say is off high standard usability wise has source, the too never go together lol (Talking commercial apps only here btw Smile as some of the user made stuff is superb )

edit: Ok looks like Its ButtonsForLaptop.sli Im interested in for the previous thing I was trying to do but that file contains like the grey bottons with the world icon and each of these buttons are all in this one file so Im thinking that means I am limited to how much text I can fit on a button by the size of the image (and variable, that would be adjustable though) . I suppose I could load my own image maybe but then Im guessing that would cause problems because the whole system is relying on this sti format to place images.

Ok I am going to try the resolution thing Smile BTW I did come across 2 variables one defined as 640 and the other 480 so Im hoping Im on the right track Smile

[Updated on: Tue, 27 May 2008 03:03] by Moderator

Re: General modding query regarding extending aim Link length[message #186453] Tue, 27 May 2008 02:59 Go to previous messageGo to next message
Shanga

 
Messages:3507
Registered:January 2000
Location: Danubia

Download SLF-Explore from JAG.
Download STI-Editor from JAG.

Now you can extract everything from SLFs. And you can view the STI image files.


Re: General modding query regarding extending aim Link length[message #186454] Tue, 27 May 2008 03:06 Go to previous message
firefly28

 
Messages:55
Registered:May 2008
Cheers Smile) Thats me for tonight but I will give it a shot tommorow. (Interesting stuff:))

edit : lol couldnt help but make an attempt at what you said so here it is and Im not sure if Ive chosen the best place or way to immplement this but in the file local.c heres the old code then my addition and it does seem to make everything a higher rez

/*original code #define SCREEN_WIDTH 640
#define SCREEN_HEIGHT 480
#define PIXEL_DEPTH 16

//I did try to do wide screen rez at 1680*1050 but wouldnt have it, Im also going to try changing //pixel depth 2 32 not sure if that will work
#define SCREEN_WIDTH 1024
#define SCREEN_HEIGHT 768
#define PIXEL_DEPTH 16

edit: actually its the pixel depth at 32 thats causing the crashes not the resolutions Im putting in

[Updated on: Tue, 27 May 2008 03:57] by Moderator

Previous Topic: JA2 Source Code Digging: Adding new teams?
Next Topic: how do i edit the1.13 build using the source code
Goto Forum:
  


Current Time: Sun Apr 23 16:58:34 EEST 2017

Total time taken to generate the page: 0.00935 seconds