Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!   (85,760 visits to this link)

    2. News

    1. GTA Online

      1. Find Lobbies & Players
      2. Guides & Strategies
      3. Vehicles
      4. Content Creator
      5. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    4. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    5. GTA Chinatown Wars

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption 2

    2. Red Dead Redemption

    3. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Forum Support

    2. Site Suggestions

B-$hep

GTA2 SCR Tool

Recommended Posts

Gustavob

There is no command for this in script, but you can mess up with the .sty file of a level and change the order of the remaps (put remap 0 (cop) in remap 16 (medic) and vice-versa, then change other remaps you want) and you'll get what you want.

Share this post


Link to post
Share on other sites
porky119

yeah - ive been looking at this all afternoon, and you might be right about it not being a script thing - i thought it could be done in sty I just haven't figured it out yet using the gta2 sty tool - maybe this should be a new post. anyways - thanks guys, and still - nice app.

Share this post


Link to post
Share on other sites
B-$hep

I have power to update the STY tool. So look at it, if you don't like something

or something could be better then tell me.

 

 

I will modify STY tool.

 

EDIT: i should have done it already but i have been just busy.

Edited by B-$hep

Share this post


Link to post
Share on other sites
B-$hep

OK, guys, latest version is here:

 

Download link:

http://www.gta2madness.co.cc/click.php?id=7

 

 

Lantyz Could you be so kind and test this tool again on these multiplayer maps, where you got weird rotation of 13°, Blond Haired Redneck problem etc.

 

Test again with latest version.

 

 

I have deeply reviewed the code and made some modifications.

It turns out that i was reading values for some players in wrong offset. I reviewed offsets in hex editor and really they were wrong it seems.

 

 

Now it should work fine.

 

 

I could add also option to change wanted level on SCR files but im stupid, i forgot the offsets where i changed them. I made screenshots and even have written the offsets to some textfile but i can't find it.

 

 

I was pretty tired when i did this. Now i can't remember.

But in next version i will add this.

 

 

 

But again guys, please test it and report any bugs you may get.

 

 

But this time it really should work fine, even EXE size is smaller a bit.

 

 

Download link again:

http://www.gta2madness.co.cc/click.php?id=7

Share this post


Link to post
Share on other sites
Gustavob

B-$hep

I tested MP1-6P.SCR (Tiny Town 6players) with old and new version, and there was no problems with rotation or remaps: P4 was a Blond Hair Redneck with 359° rotation on older version and P5 a Blond Hair Redneck with 7° rotation on older version, while on new version they were Blond Hair Redneck with 90° rotation and Yellow SRS also with 90° rotation. On MP5-6P.SCR, the old version said P4 had a 359° rotation and P5 a 13° rotation. On new version they were 225° and 0°, respectively. I found no bugs untill now in this version.

Share this post


Link to post
Share on other sites
Lantyz

In MP5-6P, the rotation of p4 is given as 225, but should probably be 315, since all players should face the pistol when the game starts. Your tool gives the correct rotation for the same player in MP5-5P, but in MP5-4P it's messed up (59°). Also, I think p2 in Hidden Surprise has rotation 180 in stead of 90, but I'm not sure. The remaps seem to work fine now.

Share this post


Link to post
Share on other sites
B-$hep

Thanks Lantyz.

 

I have looked into SCR files you reported and really, the 225 is wrong.

I see 315 in hex editor.

 

 

About MP5-4P, if you mean that player 4 rotation is 59 in my tool, then indeed this is wrong.

Because in hex editor i see 315 in player 4 position actually, not 59.

 

 

EDIT:

Oh dear, im stupid, my hex editor shows clearly how to read the value, im reading byte but i should read word.

Thanks to my HEX editor, i couldn't find solution without that so easily.

 

I will fix that one also.

 

 

 

Sorry, really stupid mistake.

 

 

 

Could you clarify that hidden surprise? What SCR file?

I don't know names of all of the maps (specially the multiplayer ones).

Edited by B-$hep

Share this post


Link to post
Share on other sites
Lantyz

 

Thanks Lantyz.

About MP5-4P, if you mean that player 4 rotation is 59 in my tool, then indeed this is wrong.

Yes, that's what I meant.

 

 

Could you clarify that hidden surprise? What SCR file?

 

Any MP2-xP.scr. According to your tool, player 2 has a rotation of 90. I thought this should be 180, but again, I could be mistaken.

 

 

I don't know names of all of the maps (specially the multiplayer ones).

MP1-xP = Tiny Town

MP2-xP = Hidden Surprise

MP5-xP = Face Off

downtown-xp = Downtown District (wil = singleplayer)

res-xp = Residential District (ste = singleplayer)

Industrial-xP = Industrial District (bil = singleplayer)

Share this post


Link to post
Share on other sites
B-$hep

Thanks.

 

Seems i fixed this bug but found another one.

 

 

It's strange one. If i first open any SCR (for example: ste.scr) that has Player 1 rotation value of 0 then my tool shows 1 instead of 0.

 

If i open any other SCR file and then again that ste.scr then it displays 0 as it should.

Some logical problem or just variable that doesn't get cleared or doesn't get correct value somewhere.

I dunno from where the hell it takes that 1.

 

At the moment im trying to kill that bug.

Edited by B-$hep

Share this post


Link to post
Share on other sites
JoTaB

I made a quick test on level1 on singleplayer, changed remap and starting position, didnt have time to test more, but it worked good as far as i saw!

 

Great work!

Share this post


Link to post
Share on other sites
B-$hep

Here is example with MP2-2P of PLAYER 2:

I took PLAYER 2 coordinates and saved them to PLAYER 1 slot.

 

So PLAYER 2 starts like this with 90°

 

user posted image

And like this with 180°

user posted image

 

I have looked into SCR file by myself and really, rotations are 90°.

 

Also taked a look into res-xp.scr files and all of them have rotations as 1°. Dunno why.

Maybe typo. 1° doesn't change anything, can't see any difference with 0°.

Even original STE.SCR has rotation of 1.

 

I reinstalled GTA2 to get original files and to be sure.

 

Take another look now, link is same:

http://www.gta2madness.co.cc/click.php?id=7

 

Anything wrong? Then let me know.

 

 

I also fixed some backup function bugs i have found and now it checks if backups already exists then it doesn't create them again. Otherways it's slowed down always when you opened SCR.

 

Backupped files have extension .original, for example: ste.original

Edited by B-$hep

Share this post


Link to post
Share on other sites
BenMillard

A more common convention is to use .bak after the full filename and extension of the original. So your example script would be ste.scr.bak as a backup.

 

This keeps it separate from ste.sty.bak for a backup of the textures. Or ste.gmp.bak for a backup of the level.

 

Also lets you see what the original file type was, so you know what is safe to edit.

 

(EDIT) The rotation of 1° might be to make aiming a bit more natural. If you start at 0 then you can shoot perfectly along compass directions.

 

But then, after you drive a car the turning normally puts you at a "perfect" angle do to the "snap" effect of the roads. And if you get out before the car has "snapped" then you get natural aiming anyway.

 

So, erm, I dunno. tounge.gif

Edited by Cerbera

Share this post


Link to post
Share on other sites
B-$hep

Hi Ben. HNY.

 

 

Yes .bak would may be better but many HDD cleaning tools just delete .bak files.

For example System Mechanic that i use wipes them out.

 

Turning off some option doesn't matter, i want to keep my HDD clean. I believe im not the only one who uses similar tool.

 

But i haven't tested if it deletes read-only files also.

My tool makes them read-only when copying them.

 

But i guess i will do it or add some option to choose from, but then im not responsible if user loses his backups because of some third party tool.

 

EDIT. maybe: ste.scr.original? If user reads readme.txt then it should know what the hell that original means and why it has such files in his GTA2 data folder. If user doesn't read readme.txt then it's not my problem.

Edited by B-$hep

Share this post


Link to post
Share on other sites
B-$hep

I started working on GTA2 Compiled Mission Script (SCR) decompiler.

 

Topic about that is here: http://gtamp.com/forum/viewtopic.php?f=4&t=72

 

It's very basic at the moment because i just started writing it today.

But testers are very WANTED.

Share this post


Link to post
Share on other sites
B-$hep

I don't know if anyone noticed this with my SCR tool or not but it has one bug.

Im not sure if it always shows up or not.

 

When SCR doesn't contain number of players and tool is unable to figure this out by itself, then when you update number of players by yourself with spinedit then only Player 1 will have coordinates. The rest will 0.0.

 

If you include nr of players in filename and open that SCR again, then all coords are displayed as they should. I will fix that.

 

 

 

 

Btw

 

Is anyone able to access my website? http://www.gta2madness.co.cc/

 

Does it works for you or it shows "Server not found"?

 

I had such problem earlier also, anybody could access my website, except me. I was unable to connect to my site.

 

My website is still hosted, and thankfully i got all my files, including database backup. But the domain name provider co.cc is dead??

 

http://co.cc/

 

Can anybody confirm that?

Share this post


Link to post
Share on other sites
Sektor

Website still works for me.

Share this post


Link to post
Share on other sites
B-$hep

Then it's the same problem as earlier.

You maybe remember that Sektor.

 

I guess it was in map editor topic. I don't know what the hell it is.

I will try to access it from my Windows 7 partition.

 

 

Maybe i have "something bad" on my HDD again.

 

 

 

EDIT: now im on Windows 7 and still nothing.

"Internet Explorer cannot display the webpage". Some kind of DNS problems.

 

So i guess that's my ISP who blocks for me that co.cc, maybe they think that contains some bad things.

 

That's the only thing i can think about. It's not normal.

 

 

 

I guess it's time to buy some .COM domain name. Im tired of these problems.

Edited by B-$hep

Share this post


Link to post
Share on other sites
B-$hep

Well i registered just in case but I don't know if it helps.

Because i need to access my co.cc account to change DNS but i don't have access to it.

And if i will get access and change that, will this solve problems? Im not sure.

 

And i don't want to make a format again because of that. Im not even sure if it helps this time.

 

Earlier when i had same problem i did a HDD format and from fresh Windows i was able to connect to my site again.

 

 

I have two choices here:

1) I must buy a COM domain

2) Find another free domain name and host it.

Share this post


Link to post
Share on other sites
Sektor

Why do you need to change DNS on your website? OpenDNS is for changing your local DNS servers.

Share this post


Link to post
Share on other sites
B-$hep

It works. Nice stuff.

 

 

Thanks alot Sektor.

 

Share this post


Link to post
Share on other sites
B-$hep

I asked R* about anything related to GTA2 scripts, it's compiler etc.

Support said that they pass my email further to someone higher place in there.

 

 

Chances are very very small even considering that answer, but maybe...

 

 

 

 

It took 2 weeks to answer to my email.

 

What they do there? Seems like somebody lost their jobs again, not enough people to answer emails.

Share this post


Link to post
Share on other sites
Sektor

Can you add command line support to SCR Tool? gta2scrtool2.exe Water_Town6p.scr

 

The browse for folder should let me type a path and it should save the last path I used or start in the gta2scrtool path.

 

How do I change remap for player 2? It keeps going back to player 1 when I push the remap button.

Edited by Sektor

Share this post


Link to post
Share on other sites
Pizzastack

Hello

I've got a problem.

I want to change the player model, but when I modify the bil.sty my game allways chrashes. Wil and ste.sty works fine.

 

What's gone wrong :(

 

good mod, by the way :)

Share this post


Link to post
Share on other sites
B-$hep

.sty files are not modified by SCR tool at all.

You must be doing something wrong.

Scr tool even shouldnt be able to open the .sty files.

 

You only work with .scr files!

Share this post


Link to post
Share on other sites
Cerium

Am I the only one who's having troubles with the tool? Is it outdated?

 

I use the Zaibatsu skin on Residential but I spawn up in the air, fall down to die and then the game crashes. What's causing this? I'm running Win10 and patch 11.44.

Share this post


Link to post
Share on other sites
asgppl

Am I the only one who's having troubles with the tool? Is it outdated?

 

I use the Zaibatsu skin on Residential but I spawn up in the air, fall down to die and then the game crashes. What's causing this? I'm running Win10 and patch 11.44.

No. You are not the only one. My game crash when I change my skin on Industrial District.

Now I will tell you how do I fix this air fall.

You need to change the "z" player standing Coordinate to 2,0 and then save

(sorry for my bad English)

Edited by asgppl

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.