SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > Editing > Editing Help

Reply
 
Thread Tools Search this Thread
Old 09-06-2017   #1
Latius
Previously known as "ah2190"
 
Latius's Avatar
Default Unlocking more Zones in a HUB map?

I have been thinking about making a HUB level where, depending on how far you have gotten through the game (as in, the player(s) have cleared one or more Boss Acts) determines which Zones are unlocked. I already have a portal system of sorts sorted - in that each gateway has a custom exit to where each of the Zones would start - and I do have all of them, barring the ones unlocked from the start, closed such that the player can't enter them, but the question is, how can I make it so that, even in netgames or DEVMODE, completing each boss Act adds something like a Boss Emblem for the save file which unlocks new Zones depending on how many you have?

Edit: And, just FYI, I do not want other Emblems (or even ones obtained in other saves) to affect it if possible - I would want it where if you start from the beginning, only the ones unlocked at the start are accessible, and only the number of Boss Emblems are counted, and all others are discounted.
__________________
You're giving me a little MANIA.

Originally known as Ah2190

Last edited by Latius; 09-06-2017 at 01:51 PM. Reason: Added a bit more info
Latius is offline   Reply With Quote
Old 09-06-2017   #2
Rapidgame7
pressure pressure pressure
 
Rapidgame7's Avatar
Default

At best, you can detect how many emblems in total a player has, or keep track of some stats in the same session, but you can't detect specific emblems (I think?) nor save any extra data in save files (with vanilla SRB2 functions).
__________________
Quote:
<Steel Titanium> so many eggman laughs
<Rapidgame7> hehehe HEHE HEhEhe
<Rapidgame7> AAAAAUUUUGGGGH
Rapidgame7 is offline   Reply With Quote
Old 09-07-2017   #3
Ice
Pretty chill guy
 
Ice's Avatar
Default

So does the game track any other secret-useful stats besides emeralds and emblems? Can't we make our own?
__________________
Endless Mine - Piano Cover (First one on youtube!)
http://www.youtube.com/watch?v=2m8LvQL0Akc
Ice is offline   Reply With Quote
Old 09-07-2017   #4
Mystic
チェン!
Administrator
 
Mystic's Avatar
Default

You could make your own, but the game won't save them, so unless your mod is designed to be played in a single sitting (which most hub world things aren't) then it's best to use emblems, clunky as it is.
Mystic is offline   Reply With Quote
Old 09-07-2017   #5
Latius
Previously known as "ah2190"
 
Latius's Avatar
Default

Quote:
Originally Posted by Mystic View Post
You could make your own, but the game won't save them, so unless your mod is designed to be played in a single sitting (which most hub world things aren't) then it's best to use emblems, clunky as it is.
I see... Well, I think I know how I'd do it - there would be Emblems obtained the first time a Boss Act is cleared, and while there will be Record/NiGHTS Attack modes, they are not unlocked until at least all the Zones have been unlocked. It's the closest that I can do to sorting this out, after all.

True, it means when starting again, you can play ANY of the Zones in any order - rather than the first time, where the Zones are unlocked in order - but that seems to be the only way forwards.
__________________
You're giving me a little MANIA.

Originally known as Ah2190
Latius is offline   Reply With Quote
Old 09-07-2017   #6
Zwip-Zwap Zapony
Please just call me Zappy.
 
Zwip-Zwap Zapony's Avatar
Default

You could probably do something using in/out stuff (which is not available in vanilla SRB2, but is in for example SRB2PlusC) and making something with Lua that checks variables (that you would save when clearing a boss or such), and opens doors or such when the variables say a boss has been cleared. I'm not sure how that synchronizes with other players online, though. According to SRB2PlusC's release's page, it might not work well online. Keep that in mind.


But I'd like to say that my biggest problem with SUGOI has been that the doors start off locked in multiplayer. (Especially since rebooting SRB2 makes them re-lock and have to be re-unlocked, but even just having a one-time lock is somewhat annoying to me.) So all I can ask is that you consider deeply whether you want to do this "lock zones until later" stuff. I'm personally fine with it in singleplayer, of course, but I personally despise it in multiplayer.

Last edited by Zwip-Zwap Zapony; 09-07-2017 at 12:31 PM.
Zwip-Zwap Zapony is offline   Reply With Quote
Old 09-07-2017   #7
TehRealSalt
Ya Gal Sal Here (σᴥσ)
Developer
 
TehRealSalt's Avatar
Default

I thought I saw a WIP save game hook from way back, sometime while 2.1 was still on a patch spree

Regardless of it was a thing or if my brain's just making stuff up, I can't describe how much I would use that if it existed
__________________
THZ Discord | Twitter | Avatar Source
TehRealSalt is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:26 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.