News:

Herr Otto Partz says you're all nothing but pipsqueaks!

Main Menu

Kart

Started by Krys TOFF, January 05, 2009, 02:41:21 PM

Previous topic - Next topic

Overdrijf

Quote from: Duplode on April 28, 2009, 10:18:07 PM
These are two distinct issues. I remember running into the issue of warped bitmaps before when editing gearbox graphics for the GT3 (they look like if the vertical axis of the image was rotated sideways, isn't it?). I can't recall exactly what happened but if I remember correctly it was something about image dimensions (try making the affected bitmaps one pixel wider (or narrower, or shorter, or taller) so they have an even total number of pixels). As for the failure to load the car, it happened because you can't delete ins1 and ins3, as they are always loaded when the steering wheel is turned (inm1 and inm3 might not be obligatory, but chances are you'll need them for the design). You'll probably change your mind about deleting them anyway, as they make the steering wheel motion look quite a lot better when properly set (unless your kart has no meters which are covered by the steering wheel, of course).
Thanks. I'll try that. Seems like that'll take care of my issues.
Also I remembered: I may not have altered the dimensions too much, but I started from the Jag interior, while my new .res is Indy based... ::)

Duplode

I don't think you need to be worried about the .res in this case, as it only controls the position of moving parts, and not the actual dimensions or other image properties. Just ensure your bitmaps do not have odd numbers for both width and height.

Overdrijf

Mmh, I have all ins and ims files again, and all my bitmaps now have even dimensions (indeed, all of the misbehaving ones had at least one uneven dimension), but both my problems remain... Guess the criteria are a bit sharper then just being even. On top of that, some of the original bitmaps actually do have uneven dimensions. Strange...

I'll see if I can get some serious investigating done tomorrow...

Duplode

Weird... looking at the STDA I did for the GT3, none of the bitmaps have width and length simultaneously odd, even if the gearbox base is 64x45. There are only two things I can think of right now: the order of the resources in the file and the unknown parameters of the bitmaps (displayed below the coordinates and dimensions - try copying them from the Jaguar and see if it makes some difference).

Overdrijf

#19
Okay, what I've found so far is that the mistery bites are most likely the problem/one of the problems. They are at least partially size related. I know that because in most cars bitmaps that belong together like whl1, 2 and 3 have the same mystery bites. In the ferrari however whl 1 has a different size than the other two, and slightly different mistery bites. There does not seem to be a logical connection though. The speedgate used all the sizes, positions and mistery bites from the porsche imsa, so that trick should work for me too. However, the roof bitmaps are the same size for many cars, but have different mistery bites. So the next question I'm gonna answer is: can parts of different cars be combined without a problem? And next up: can the x-y position of a bitmap be changed without changing the mistery bites? And finally: do the same mistery bites work on a bitmap with the same size and position but a different name than the original? (In other words: can I make a gearbox the size of my dashboard or maybe just hang it down the roof?)

More information will follow.

EDIT: The mistery bites are dependent on more than size and location. I tried transplanting the mistery bites from the roof of the 962 to the audi, having the same size and location. It did not appear to be warped upon reopening, but stunts didn't accept it. What's more, stunts didn't accept it when I changed the mistery bites back. I then replaced the test file by the original I had saved elsewhere, and windows said the file I was replacing was much larger than the one I was pasting. It did work again after that, but apparently those little bites control something behind the scenes bigger then themselves. Master-bites, I hate them already. So, the interior will have to be based on one car.

Then I tried to change the position of the gearbox of the audi a bit, with the same result. No warping, but no startup either and a much bigger file.

And exactly the same results for trying to make a gearbox with the picture, coördinates and bites of the roof.

So now it was time for the final test: saving the file without making any changes at all. Guess what? Same problem. The filesize hadn't changed this time, but stunts did not accept the file. What am I doing wrong here?

Overdrijf

#20
O, wait, I should save as VSH, the compression issue again.

Well, that solved most of my issues, now even my own set of pictures works, it's just still warped, even when driving it. :) I'll start reïnvestigating...

EDIT: this time around everything worked. I can replace the mistery bites of the audi roof by the 962 ones, I can move the gearbox and I can replave the gearbox graphic's and bites completely by the ones from the roof, with the knod half in and out of the picture. However, that last operation resulted in one of the palettes showing up at the top of my screen, but only when the normal non-gearbox roof was showing.

Mmh, now my gnab refuses to be transparent, plus both my gnob and gnab automatically chance one of their mistery values from 14 to 04 when I load the picture...

Duplode

Nice that things are (more or less) working now  :) For future reference, at which step exactly of the tests did the warping problem disappeared?

About the unknown value changing by itself: I guess we (for the moment) do not need to worry about it. Looking at Stressed source code shows that Dstien made it so the values are automatically set to 01, 02, 04 and 08 on importing a pic (probably because he didn't know exactly what to do with the values either  :)). As for the non-transparent gnab, probably you can solve it by opening it on Photoshop/GIMP/etc. and using the "Color to Alpha" option to make the "background" transparent before importing it back (the alpha mask information is lost when exporting a picture).

Overdrijf

#22
Quote from: Duplode on April 30, 2009, 04:10:25 PM
Nice that things are (more or less) working now  :) For future reference, at which step exactly of the tests did the warping problem disappeared?

About the unknown value changing by itself: I guess we (for the moment) do not need to worry about it. Looking at Stressed source code shows that Dstien made it so the values are automatically set to 01, 02, 04 and 08 on importing a pic (probably because he didn't know exactly what to do with the values either  :)). As for the non-transparent gnab, probably you can solve it by opening it on Photoshop/GIMP/etc. and using the "Color to Alpha" option to make the "background" transparent before importing it back (the alpha mask information is lost when exporting a picture).

I actually had a transparent version, but I wanted to make it bigger (as big as the knob of another car) so that I'dd know which mistery bites to enter in order to prevent it from warping. That part worked, it doesn't warp anymore. Now I can't get the larger picture to be transparent in stressed, it has a green background. I never used green in that image. I tried saving it with all sorts of different setting in the GIMP, but it stays green, and doesn't become transparent in stunts either. I have a similar problem with the upper end of the dashboard, the transparent area becomes white. Oké, it is white, but the mask should make it transparent. Although now I think about it, it should probably be black, that might work...

Cool, it did work. So it's just the knob then that disbehaves for now.

EDIT: I just noticed I managed to save the gnab as an indexed picture. I quickly fixed it to RGB, it works too now. I need to start messing less things up...

Duplode

Quote from: Overdrijf on April 30, 2009, 04:57:14 PM
EDIT: I just noticed I managed to save the gnab as an indexed picture. I quickly fixed it to RGB, it works too now. I need to start messing less things up...

It worked as RGB but not as indexed? Cool, it seems I had been underestimating the power of stressed all along... (so far, I thought you had to save the bitmap as indexed and import the exact Stunts palette into GIMP for it to work, but in fact it can convert from RGB correctly)

Overdrijf

#24
Did you know that there is a minimum dashboard height? I tried making dast and dasm as big as dash, to create an "open" car, but it seems the dashboard must be at least something like 35 pixels high, the screen just ends in a whole lot of colorfull pictures below there. :) In fact, it appears to be loading a random image from the game itself, I just saw the curtains from the car selection screen.

EDIT: And now I made my kart too big. Stunts can't reserve enough memory... :(

Overdrijf

#25
Oké, after having about a week of vacation, I am proud to release the superkart, version 0.0 beta.

Why beta?
This version still has some problems, mainly dashboard problems, I know why this is, I just don't know how to fix it. They mainly surface when using the replay menu or when driving outside the standard in-car view. This is a big issue, and I should probably fix it by replacing my ugly drawings with an only slightly modified version of the Indy dashboard. Untill then I'dd like other people's input on any other issues they run into. This being a beta does not mean you should wait for the real thing, I would really like to hear all your cowboy stories about bugs you encountered.

Visual
Thanks to Crashper I now have a driver that can actually be modelled, which means I could go for an open look like these karts have in reality, instead of a closed car looking like a shortened Indy. While Crashper is in the vehicle when you look at it from the outside, he's just there to help. As soon as you get in yourself you'll see there are no hands on the wheel, let alone his hands. The dashboard is about as ugly as expected by me and has actual steering wheels, a stunts first I believe. Also, the car is always green while you're in it. But as mentioned, the dashboard has it's problems, enjoy it while it lasts. The view hight is set a lot lower than Crashper's head actually is, but it looks better this way.


Unda tha hood
The Flat road top speed is 153mph, bumps bring the top up to 156 seconds, the 2.9 seconds to 60mph I put in the official data sheet is actually pretty accurate. The programmed wheelbase is only as wide as the real wheelbase, but as long as the entire car, give it a shorter wheelbase and it'll go down in a blaze of bugs. The small width gives the car an edge at driving through the middle of slalom blocks and jumping through loops, making this a bit of a cheat car, but the low top speed gives it a disadvantage at driving straight through objects. When coming up to a traffic light you should not park next to an Indy or Speedgate, but you can stay ahead of the 962 for about 17 seconds, and ahead of the Jag for even a few seconds more. Cornering is done at speeds exeeding 120 mph. The feel of the car might be a bit strange in the beginning, and you might have to watch out for a big fat magic carpet every now and then, but it really handles quite good. With six gears and high acceleration it's not the ideal car to learn driving manual in though. In automatic however it's a good newbie vehicle, with a limited top speed and jump length helping not to run into nasty surprises, like bouncing of a banked corner just behind a jumping bridge. They also make some of the more extreme stunts impossible though, and really fast tracks become a bit boring (I managed to get an avarage speed of 149mph more then ones, just 4 below the flat rood top speed). The superkart does not come with a powergear on top of its 6 normal ones.

Aren't you forgetting something?
Yes, I am, I would like to give a big thanks to Dstien for Stressed, thank Mark Nailwood for Carblaster and thank everyone who ever contributed to the dissection of the stunts files, especially Duplode for his recent revelations on car size.

So, shall I go break your record for smallest car now?
You're free to do so, but I'dd advice against it. From what I've seen so far this is about as small as you should want a stunts car to be, make it smaller and you'll enter a bugfest. So I'm affraid we'll never get to ride a remote controlled vehicle in stunts. (what? That's meta-simulating, it would be cool.)

Anyway, enjoy.

Chulk

Great! I'll test it tonight and you'll get feedback tomorrow...
Yes, it is me. No, I'm not back at racing (for now...)

Duplode

#27
 8)!!

I tested your kart a bit. I didn't do much actual driving, but on first impression the kart feel is really nice and convincing, and the solutions on the dashboard are smart. And Casper on sunglasses makes a good logo for your team too, I guess  :)

But right now the pressing issue is probably the dashboard malfunctions... After comparing the dash/dasm/dast of Indy and the IMSA cars, I noticed the second unknown value is related to the vertical size of the bitmaps. For instance, unk2 of Indy's dash is FFA0h = -96. dasm and dast are 8 pixel-high bitmaps, and unk2 for them is FFA8h =  -88 - exactly eight more than for dash. Doing the analogous modification on unk2 in STDASUKA.vsh dasm/dast (that is, making it equal to 62+dash's unk2) appears to solve the most serious problem (screen corruption + eventual crash after pausing the game or switching cameras). The modified file is attached. The other two issues are comparatively minor:slightly flickering meter needles and dot, dast staying on foreground above the replay bar buttons (this hopefully can be solved by studying a bit more the unknown values) and some small graphical artifacts around the upper part of the steering wheel (if no better solution can be found, I guess this can be workaround'ed by changing the shape of dast slightly so it becomes convex).

Edit: Oh well, it seems that change didn't really solve the issue, just (maybe) made it took longer to appear...

Edit 2: I exchanged the file for another with more alterations of the same kind - and now it does seem better - it didn't crash after ~4 minutes of constant pausing and rewinding. I also messed up a bit with inm/ins, maybe some of it (such as exchanging the files) wasn't really needed and made the needle display slightly more buggy when you turn the steering.

Edit 3: About the dashboard vs. replay bar issue, it seems Stunts will always render dasm/dast on the top of the replay bar. That is not an issue for Indy/P962/Jaguar because their 'dash's are taller than the replay bar (>49 pixels). Thus, there is not much to be done other than making the dashboard 11 pixels taller/higher (that will hurt the Kart feeling quite a bit, so you'll likely prefer to live with the bug...).

BonzaiJoe

Congratulations Overdrijf!

The Kart feels just like a kart and has a very innovative design, and you are one of the funniest people in the Stunts world :)
But we can't be quite sure.


Overdrijf

Thanks for the feedback guys. Glad to see you like it. Wow, the dashboard does appear to work now. I thought it might have to do with dash being larger than seen on screen (I made dash this big because I didn't know the mistery bites for a smaller version), but apparently not. Thanks.
I knew some issues were related to dast/dasm. It's rendered above any steering elements for instance, which is why I didn't use ins1 and 3 to make a turning steering wheel. This is also what hinders the meters and dot (dot being a bit off center is a different issue alltogether, I'll fix that soon, just somehow missed it). But above the replay menu, what were those programmers thinking? :)