Home » MODDING HQ 1.13 » v1.13 Modding, Customising, Editing » v1.13 Modding, Customising, Editing » How to create a working jsd for multi-tile structures? (Is there a guide for JSDEdit?)
How to create a working jsd for multi-tile structures?[message #357235] Tue, 16 April 2019 05:26 Go to next message
Kitty

 
Messages:61
Registered:October 2017
Location: Germany
While trying to make boats I ran into problems with jsd's. I made bitmaps of my boats and shadows, made the sti-files with sti-editor. Then tried to create the jsd for them with JSDEdit. But either the game says error when loading the map or I can walk straight through those boats (density is filled out above 100). I looked into other jsds to see how it's done, but that didn't help enough. To many informations missing on my side. When I desperatly took the jsd of the containers and renamed it to my boats sti, it worked (for the tiles used by containers)

How do I know to which Basetile JSDEdit is refering to? I thought this would be the position seen in map-editor while placing, but that may is wrong.

Is there any rule, where this basetile has to be? Is it correct to change it's position with x/y in sti-editor? Or is this completely wrong?

Some jsd i've seen have "outlined" borders, meaning there are only "0"s at what I think is supossed to be the border. Others don't have this. What's up with this? A misinterpretation of mine or needed?

How do I find out what is the matching destruction partner? Is this needed anyhow?

How to know which category (Generic, vehicle, etc) to choose?

Is there any guide or thread dealing with this I've overlooked?

For testing reasons I created a one tile object and creating jsd for this worked. So, is there a difference between single-tile objects and huge multi-tile objects?

Any idea about this out there?



I need more details.

(Didi Hallervorden)
Re: How to create a working jsd for multi-tile structures?[message #357239 is a reply to message #357235] Tue, 16 April 2019 08:36 Go to previous messageGo to next message
Hawkeye

 
Messages:1931
Registered:October 2005
Location: Australia
Have you checked your offsets in the Sti? That can sometimes throw out your corresponding jsd positions.

Your base jsd tile must be positioned at 0,0,0. If not the game will crash, period.

I had a number of hurdles when attempting some 'interlocking' graphics which may interest you here, but it's more specific to some of the issues I dealt with, where I was using oversized sprites among other things, but there might be some common factors you might face.

http://thepit.ja-galaxy-forum.com/index.php?t=msg&goto=272677&#msg_272677

I'd also strongly suggest using Pipetz editor for more visual feedback on your jsd structures. JSD edit is actually better for editing existing tiles or cutting and pasting values, but for custom work you might want to try the Pipetz one.

A destruction partner defines the kind of debris that the object will leave on the map if it's destroyed or exploded. I don't have a list handy of them, if there ever was one, at times I just noted another object in game which was suitable and ripped the values from that.

JSD info is very sketchy on here, I can only suggest doing a search, or search on google with reference to the bears bit as the search function sucks on here.





[Updated on: Tue, 16 April 2019 08:47]



Re: How to create a working jsd for multi-tile structures?[message #357338 is a reply to message #357239] Sat, 04 May 2019 15:13 Go to previous messageGo to next message
Kitty

 
Messages:61
Registered:October 2017
Location: Germany
Thanks, I still haven't solved the "boat-problem" but got a better understanding know which will help in general. Smaller graphics I got working.

I've tried out Pipetz Editor and it looks very promising because of the visualisation. But sadly it crashes everytime I try to save. This is probably a problem related to my machines capacities then the editor itself, I guess (lack of RAM). I'll give it atry when I got a new machine someday soon.




I need more details.

(Didi Hallervorden)
Re: How to create a working jsd for multi-tile structures?[message #357339 is a reply to message #357338] Sun, 05 May 2019 04:23 Go to previous messageGo to next message
Hawkeye

 
Messages:1931
Registered:October 2005
Location: Australia
Which problem is that? That merc pass through the boat? How large is the boat graphic in pixels and what kind of JSD dimensions are you using?

Another thing I forgot to mention is 'How to know which category (Generic, vehicle, etc) to choose?' most of the time you'll just use Generic unless it's a specific item listed like a door, switch etc. Vehicles will be for vehicles you can actually drive, rather than static props like the old orange pick up truck and airport buggies.


Re: How to create a working jsd for multi-tile structures?[message #357344 is a reply to message #357339] Sun, 05 May 2019 20:09 Go to previous messageGo to next message
Kitty

 
Messages:61
Registered:October 2017
Location: Germany
Main problem is me being a bloody amateur happy

But seriously, what I'm struggling with is:

- mercs can pass through boat like there would be no jsd at all
- the base tile postioning. The one in red in map-editor, the starting tile item in jsd i assume. I sometimes end up with this being placed 20 tiles away from my object. I then change the position with x/y in sti editor until it seems to be on the right place, which I assume is the bottem-left corner of the object. Another reason for pipetz-editor, it automaticly putted it in the right place, sigh.

I'm not sure what is ment with jsd-dimensions, but if it is the number of tile-items like I guess, it is likely to big. It is 45 tile items...

The bmp I used is 219x51x8 BPP.

My graphics are no way the high quality I've seen in VR (amazing!), it's rather pixel drawing. I extracted the truck out of sti and worked with paint.net on the bmp. I cut away the tires and the cabin (leaving the window). Then tried to shape it to something like a speed boat using the truck-textures and made version with a crate and machineguns in the back. I did use the truck, because I hoped this way the boat will look more fitting to the JA2 environment then it ever would if I draw something myself. The bigger ones I tried turned out to be plain ugly, the front might be ok, but the cabins allways looked like, well...won't write it here.

This said, since I used the truck I choosed vehicle as category. Good to know that this is wrong.

I might can produce a smaller one with less tile-items nescessary, but I doubt this will do the trick alone. At the moment I'd be happy if the mercs at least wouldn't be able to pass right through it.





[Updated on: Sun, 05 May 2019 20:11]




I need more details.

(Didi Hallervorden)
Re: How to create a working jsd for multi-tile structures?[message #357347 is a reply to message #357344] Mon, 06 May 2019 04:41 Go to previous messageGo to next message
Hawkeye

 
Messages:1931
Registered:October 2005
Location: Australia
I doubt using the truck as a vehicle will break anything. I know I used the same values for static vehicles early on and it didn't seem to cause issues, but yes, most of the time just use generic to be on the safe side.

Your BMP doesn't sound overly large, I know my tankers (for the trucks) in Vengeance are over 300 pixels long and I've probably got larger assets too that I was too slack to chop up.

I wouldn't be too concerned with your sti graphics in general, because any picture can be used really, it's just getting the JSD's to work so you can interact better with them. As mentioned before the only thing you really need to focus on in the Sti in this case is the offset value. That will define where your graphic sits in the game and how the JSD's will line up with that graphic also. The trouble is this offset needs to be adjusted should your object grow larger in length. For example, a smaller sti graphic that takes up one whole JSD 'block' which represents a 40x20 pixel tile does not require much offset but a larger object like your 219x51 pixel pic will require a much larger offset so that the graphic overlays correctly to a your first JSD block which sits at 0,0,0, which you want to have sitting at the lower left point of your graphic. This may be why your JSD blocks are appearing or acting that they are way off and not sitting in the right place to match with your graphic. Though it should be noted it's the Sti that is likely to be in the wrong place, not the JSD.

This may sound a lot to take in without visuals. I'd suggest loading up the cargo.sti and it's jsd for a better understanding of offset. It might be wise to start with something with a basic blocky shape like this before jumping into more complex or larger items.

It looks like I need a refresher course too, and to be honest offsets used to give me the shits when I was working with them and I often just 'played it by ear' and adjusted things on the fly. This should be more accurate...

Here's the Cargo container sti in stiedit. Note the pixel dimensions and the offset.

http://www.mediafire.com/convkey/e182/ckz5f9llgzr59jbzg.jpg

And here's a graphic I've overlayed with those offset dimensions illustrated in the green box, this sti defines where your first (0,0,0) JSD tile will sit (in blue) across 74 pixels and down 90 pixels.

http://www.mediafire.com/convkey/538c/dk16k4cq6uy54xyzg.jpg

And here it is in the editor, the first tile being positioned past those offset co-ordinates.

http://www.mediafire.com/convkey/043f/3at73gdbu2w9rp9zg.jpg

From there on the JSD 'blocks' sit in the negative space from that starting tile. It is possible to place JSD's with positive coordinates, but I've found from experience they can act strangely and sort incorrectly. So keep them in the negative. BUT don't forget your starting first JSD tile MUST start at 0,0,0, otherwise it will crash your game.



Re: How to create a working jsd for multi-tile structures?[message #357352 is a reply to message #357347] Mon, 06 May 2019 16:49 Go to previous messageGo to next message
Kitty

 
Messages:61
Registered:October 2017
Location: Germany
Great, just great. Seeing what the values mean, compared with your patient explanation will surely help me much.

This way I should be able to at least adjust the position of the first tile to my graphic, which I assume is the basic of starting to work with JSDs. This then will be at position 0,0,0 and from there on I can define positions of other tiles in jsd and give them their shape. Knowing me and my lack of technical understanding, I sure will face other problems on the way angry , but I'll keep crawling inch by inch.

Thanks for the explanation and your patience.



I need more details.

(Didi Hallervorden)
Re: How to create a working jsd for multi-tile structures?[message #357353 is a reply to message #357352] Tue, 07 May 2019 03:35 Go to previous message
Hawkeye

 
Messages:1931
Registered:October 2005
Location: Australia
Well let's hope I've done enough crawling before which means you won't have to as much this time around. I wasn't actually 100% sure of how offsets orientation worked in regards to orientation, but screen grabbing those shots and comparing the figures seem to match up. I guess before I was more driven by getting graphics in game than actually dissecting how the damn things worked at the time.

JSD's are another kettle of fish and not always clear in their workings. Recently me and Scorpion were discussing their height values, with the common factor in the game that anything lower than 2 can be jumpable. But while items that are 3 high would not be, it appears switching them to 2 only removed the lowest height of blocks, so does that mean the shape height it some kind of weird binary 3= both levels 2=upper only 1=lower only? I think the Russians would know more about it, but there's not much info around in English.

https://www.mediafire.com/convkey/e823/53e23eo9btwsdp0zg.jpg

This pic above may be useless now if the height values do work in the way discussed, but still may prove to be handy for visualisation purposes. What I'd like to know is how many pixels does a height block represent? 10?


Previous Topic: Q&A about portrait .sti files; portraits
Next Topic: Bobby Ray's Shipment Drop Zone
Goto Forum:
  


Current Time: Tue Jul 16 07:32:07 EEST 2019

Total time taken to generate the page: 0.01341 seconds