Jump to content

Savepoint Creation


Recommended Posts

I'm trying to add more savegame places for GTA:3, VC and SA however I am in a bit of a pickle and need help as everythings all over the place. Editing an existing savepoint is simple as pie but if you can help me to add these checkpoints for the three GTA's, I would be very greatfull.

 

Regards ms.cooldude

Link to comment
https://gtaforums.com/topic/263221-savepoint-creation/
Share on other sites

As with most things, imitate original code.

 

VERY basically, its-

 

 

if $save_pickup picked upjf xyzon_mission = 1show_saver_screen...

 

 

Look at the saving thread and see how it's done there; also add your new savepoints to the master savepoints array there. The labels you'll need to (slightly) modify is from :PSAVE1_1 up to :PSAVE1_87

Link to comment
https://gtaforums.com/topic/263221-savepoint-creation/#findComment-3977438
Share on other sites

As with most things, imitate original code.

 

VERY basically, its-

 

 

if $save_pickup picked upjf xyzon_mission = 1show_saver_screen...

 

 

Look at the saving thread and see how it's done there; also add your new savepoints to the master savepoints array there. The labels you'll need to (slightly) modify is from :PSAVE1_1 up to :PSAVE1_87

That is sorry not very clear to me however could you show making a new script for the code

Link to comment
https://gtaforums.com/topic/263221-savepoint-creation/#findComment-3977791
Share on other sites

It's really not much more than what Bigun put up there. You're basically checking to see if the pickup is picked up. If so, go to the save screen, if not, go somewhere else.

 

You might also want to have an IF check to see if you are indeed done saving.

 

Like Bigun said, use the original code. Why not post what you have done so far?

Link to comment
https://gtaforums.com/topic/263221-savepoint-creation/#findComment-3977840
Share on other sites

damm i sat some time and figured out my own save code smile.gif

 

ok here it is for u ppl taht wants a custom savepoint wow.gif

 

first u create a new thread

 

004F: create_thread ££SAVEPICKUP

 

 

then u wants to ad a save disk "only pickup yet"

 

0213: $MYFIRSTSAVE = create_pickup #PICKUPSAVE type  15 at [put cordinates here]

 

 

and then u put the "save code"

 

:SAVEPICKUP0001: wait  200 ms00D6: if  00214:   pickup $MYFIRSTSAVE picked_up004D: jump_if_false ££SAVEPICKUP03D8: show_save_screen0002: jump ££SAVEPICKUP

 

 

Edit:removed some code making the savepoint not looping as it should blush.gif

 

put the last one at end of script and the create thread where all other create threads are just do a search in script for "create_tread" and put my thread code at the botom of those smile.gif

 

then for the savedisk pickup, just put it before the last code and everything should be good icon14.gif

Edited by fredde-93
Link to comment
https://gtaforums.com/topic/263221-savepoint-creation/#findComment-3985494
Share on other sites

damm i sat some time and figured out my own save code smile.gif

 

ok here it is for u ppl taht wants a custom savepoint wow.gif

 

first u create a new thread

 

004F: create_thread ££SAVEPICKUP

 

 

then u wants to ad a save disk "only pickup yet"

 

0213: $MYFIRSTSAVE = create_pickup #PICKUPSAVE type  15 at -[put cordinates here]

 

 

and then u put the "save code"

 

:SAVEPICKUP0001: wait  200 ms00D6: if  00214:   pickup $10956.25 picked_up004D: jump_if_false ££SAVEPICKUP03D8: show_save_screen0002: jump ££SAVEPICKUP

 

 

Edit:removed some code making the savepoint not looping as it should blush.gif

 

put the last one at end of script and the create thread where all other create threads are just do a search in script for "create_tread" and put my thread code at the botom of those smile.gif

 

then for the savedisk pickup, just put it before the last code and everything should be good icon14.gif

Thanks but is this code for VC as well as SA?

Link to comment
https://gtaforums.com/topic/263221-savepoint-creation/#findComment-3985837
Share on other sites

i think u are puting my code in wrong place cus i have it in my empty script and it works there...

 

first create the thread where all other threads are created

then for the create pickup i dont know where to put it since i only put it in my striped out script but put it where the script makes the other save pickups smile.gif

then for the last code just put it last in script and u should be runnin rahkstar2.gif

 

Edit: and btw vinnygouveia i did not copy that code...i figured it out bymyself then find the codes in the SA opcode database rah.gif

 

DoubleEdit:and Ms.cooldude i dont know i dont even have VC on computer so it might work just test and if it goes "woopsie" i guess it dont woek blush.gif

 

TripleEdit:opsie i found the foult, i did forget one $ that wasnt replaced but now its done and u should get NO errors wow.gif

Edited by fredde-93
Link to comment
https://gtaforums.com/topic/263221-savepoint-creation/#findComment-3986922
Share on other sites

Knowledge Novice

I've been curious about creating 'Buyable Assets' but I get a little lost in all the code. However the savepoint part doesn't seem that hard. I tried it out on VC and yes it does work. One thing in particular that I'm not sure about is the best place to put my create_pickup. Should I place it with the rest of the create_pickup's or is it OK to put it in my thread. This is what I ended up with.

 

This creates a save point at the pool beside Vercetti Mansion (where the stripped_complete script game starts).

 

Add to create_threads

 

004F: create_thread ££NewSave

 

 

Add just above --MISSION 0--

 

:NewSave03A4: name_thread "NewSave":Create_Pickup0213: $MYFIRSTSAVE = create pickup -17 (PICKUPSAVE) type 3 at  -301.5722 -567.535 12.85035    :SAVEPICKUP0001: wait  200 ms00D6: if  00214:   pickup $MYFIRSTSAVE picked_up004D: jump_if_false ££SAVEPICKUP03D8: show_save_screen0055: put_player $PLAYER_CHAR at  -301.5722 -563.535 12.0 0171: set player $PLAYER_CHAR z angle to  0.00002: jump ££Create_Pickup 

 

 

I noticed no bugs when I tested this, but just let me know of any mistakes. Thanks guys. muppetmaster_karma.gif

 

Link to comment
https://gtaforums.com/topic/263221-savepoint-creation/#findComment-3987025
Share on other sites

I'm no SB expert, but it looks like your trying to paste in MB code. Except some changes need to be made.

 

A quick look in tomworlds "Coding bible part I" shows that SB uses the @ sign instead of the MB labels.

I tried that but when I start New Game it loads san andreas but when the loading is complete it gives a black screen with nothing

Link to comment
https://gtaforums.com/topic/263221-savepoint-creation/#findComment-3987259
Share on other sites

i hope this code helps for u that wants a new place to save icon14.gif

 

its realy good for TC mods, and thats why i orgiginaly made this code blush.gif

 

 

 

muppetmaster_karma.gif

icon14.gif Thanks and not just you, but also Knowledge Novice and ceedj. These codes work succesfully for me in VC! SA is still yet to be tested.

Link to comment
https://gtaforums.com/topic/263221-savepoint-creation/#findComment-3987692
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
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

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