Well it is stored as 4*blah for some angles.T.M. wrote:are you kidding? i think you are, but on the other hand: i remember docs saying "*something* must be multiple of 4" which is bullshit.Vike the Hube wrote:Yeah yeah, I know; and angles are stored *4
vike's GTA2 update patch enhancement upgrade fix v11.44
- Vike the Hube
- Hitman
- Posts: 145
- Joined: 28 Feb 2010, 22:34
- GH nick: vike
Re: Vike's enhanced GTA2
Re: Vike's enhanced GTA2
nope it isnt all angles are 16bit values except the tile rotations are 2bit indexes for an array that has values 0,90,180,270
My GTA2 related projects:
Re: Vike's enhanced GTA2
The main reason I chose 254 was because the compiler won't allow higher than 255 and no one uses 254 for Z coordinate.T.M. wrote:i would prefer value 1337.0 or 7313.0 as in "TELE" lol
Re: Vike's enhanced GTA2
Code: Select all
WARP_FROM_CAR_TO_POINT (p1, 1.1,2.2,1337.0, 155)
i think you confused it to GTA2 from allowing higher than 255.0, thats true. it would crash, at least for coords, dunno about other float values. but that doesnt have to be like that if Vike makes a check if(value == 1337){ dont_crash(); }
My GTA2 related projects:
Re: Vike's enhanced GTA2
I thought I tested it in the compiler but I must have only tested if angle can be more than 359 (it can't but I know you mentioned that already).
1337.0 or 7313.0 would be better
1337.0 or 7313.0 would be better
- Vike the Hube
- Hitman
- Posts: 145
- Joined: 28 Feb 2010, 22:34
- GH nick: vike
Re: Vike's enhanced GTA2
What about WFCTP? Can't remember if it's stored like that in the .scr or not. At any rate gta2.exe converts to and from 4* the angle.T.M. wrote:nope it isnt all angles are 16bit values except the tile rotations are 2bit indexes for an array that has values 0,90,180,270
- Vike the Hube
- Hitman
- Posts: 145
- Joined: 28 Feb 2010, 22:34
- GH nick: vike
Re: Vike's enhanced GTA2
Haha "dont_crash()", if only it was that easy Damn flamethrower + door bug would be smashed long ago.T.M. wrote:but that doesnt have to be like that if Vike makes a check if(value == 1337){ dont_crash(); }
Re: Vike's enhanced GTA2
All functions angles are 16 bit. even WFCTP. i made the decompiler remember? trust me i knowVike the Hube wrote:What about WFCTP? Can't remember if it's stored like that in the .scr or not.
Whaaaat!? you mean WFCTP function ? so we can have only 4 degree precision then? that is super weird, i dont believe it any other angle works just fine with 1 degree precision AFAIK.Vike the Hube wrote:At any rate gta2.exe converts to and from 4* the angle.
My GTA2 related projects:
Re: Vike's enhanced GTA2
Could it be anyhow possible to remove the annoying pause screen? I already muted the freeze.wav because it has HUGE volume and is super annoying when i want to play the game one frame at a time multiple times pressing the numpad+ button.
Here is what i mean: the PAUSED image is fucking huge and covers everything i want to see, atm i just use debug keys to move the cam so i can see under that PAUSED image.
Here is what i mean: the PAUSED image is fucking huge and covers everything i want to see, atm i just use debug keys to move the cam so i can see under that PAUSED image.
My GTA2 related projects:
- Cuban-Pete
- Immortal
- Posts: 909
- Joined: 29 Jan 2010, 15:03
- GH nick: Cuban-Pete
Re: Vike's enhanced GTA2
Overwrite the parts of the image in the image-editor with a transparent one?
"Mmmm, your eyes are so beautiful."
Re: Vike's enhanced GTA2
its not actually an image, the font and background comes from .sty file. just need to replace those sprite ID's with something that isnt visible at all, each sty file has lots of unused/transparent sprites so its possible.
My GTA2 related projects:
- Gustavob
- Immortal
- Posts: 407
- Joined: 18 May 2009, 21:40
- GH nick: Gustavob
|Gustavob| - Location: Nowhere.
- Contact:
Re: Vike's enhanced GTA2
it's pretty much that, just replace the background with pure black and then to remove the fonts go to fstyle.sty, i guess it's there (just in case it's not in the level's sty file), but if it is it will remove that font from everywhere it's used (and IIRC it's also used in the main menu), even though it will keep the small fonts below the background, and those are in the level's sty, but that would remove briefs as well. You probably don't care about it getting removed anywhere else so go on.T.M. wrote:its not actually an image, the font and background comes from .sty file. just need to replace those sprite ID's with something that isnt visible at all, each sty file has lots of unused/transparent sprites so its possible.
You just lost the game.
Re: Vike's enhanced GTA2
Not sure why you want to view something while paused, but anyway. Just do what Gustavob said really. The background on pause menu are called "GTA2_USER_OBJECT_xxxx.bmp", with xxxx being 1327 to 1329 in Delfi's STY Tool (right at the start actually). Change to all black and it becomes invisible.
- Old School GTA2 Mapper and Scripter.
- Creator of the original GTA2 Scripting tutorials hosted by Ben Millard.
Re: Vike's enhanced GTA2
if i change the sty file, doesnt gta2 desync then? and if i change the font to invisible, then i cant see any other text with that font... i could change the background though, its useless.
My GTA2 related projects:
Re: Vike's enhanced GTA2
Only the tiles I mention are used on the pause menu. If you make those invisible and keep the font the same/visible, it'll still say "Paused" but not occupy most of the screen with solid colour.
As far as I know, only the GMP, SCR and GCI need to be identical but I remember playing with friends a few years ago when I had different STY (like new car textures) and it worked, but I'm not sure about nowadays. Try it and find out.
As far as I know, only the GMP, SCR and GCI need to be identical but I remember playing with friends a few years ago when I had different STY (like new car textures) and it worked, but I'm not sure about nowadays. Try it and find out.
- Old School GTA2 Mapper and Scripter.
- Creator of the original GTA2 Scripting tutorials hosted by Ben Millard.
Re: Vike's enhanced GTA2
OH
here is why i needed it btw: had one test drive even closer to death than that
--
btw i also noticed pausing will desync replay sometimes
here is why i needed it btw: had one test drive even closer to death than that
--
btw i also noticed pausing will desync replay sometimes
My GTA2 related projects:
- Cuban-Pete
- Immortal
- Posts: 909
- Joined: 29 Jan 2010, 15:03
- GH nick: Cuban-Pete
Re: Vike's enhanced GTA2
You could also record with fraps and after that throw it in VirtualDub to make a .gif from it. (You might also wanna do an "optimize for animation" in GIMP to make the filesize smaller).
"Mmmm, your eyes are so beautiful."
Re: Vike's enhanced GTA2
haha thats awesome.
i like that thrill of almost getting hit by train.
it sometimes happens on tiny face off army.
i like that thrill of almost getting hit by train.
it sometimes happens on tiny face off army.
yur sa'nok ngeyä
Re: Vike's enhanced GTA2
Then you love my map "10 trains"elypter wrote:haha thats awesome.
i like that thrill of almost getting hit by train.
it sometimes happens on tiny face off army.
Or i could just press + button and few times screenshot and paste to a Animation Shop Pro (great program for making gifs, comes with Paint Shop Pro 7 which is also great program ). i optimized the gif size already AFAIK.Cuban-Pete wrote:You could also record with fraps and after that throw it in VirtualDub to make a .gif from it. (You might also wanna do an "optimize for animation" in GIMP to make the filesize smaller).
tbh, fraps is the last thing to do on cases like this where i need to get ALL frames. not to mention, i havent got my fraps working properly, ever. its buggy as hell... in fact, i havent had a single screen recorder EVER working properly. they always either fuck up colors, frames or just suck any other possible way you can think.
My GTA2 related projects:
Re: Vike's enhanced GTA2
I decided to do what cuban-pete said:
http://gtamp.com/forum/viewtopic.php?f= ... 5380#p5380
got that damn fraps working after all, though, only in 640x480 resolution.
http://gtamp.com/forum/viewtopic.php?f= ... 5380#p5380
got that damn fraps working after all, though, only in 640x480 resolution.
My GTA2 related projects: