Solved Allowselect works only after character select stages?

Question that is answered or resolved.

PS_VITA

Active member
Hi,
allowselect only works when a player joins a game? Is there a way to use allowselect before starting the very first stage?
 
Solution
I'll contribute an example here sense my current project uses Skipselect and Allowselect


And here's the SelZX.txt located in my data folder

This way @PS_VITA you can compare your files to mine and see if you got everything what way you need it.

x)

@DJGameFreakTheIguana
This worked out after I erased the sav files and everything works great!

I had to also include nosame 1 1
because I didn't want P1 and P2 to be able to select the same character.

other than that everything works great, thank you!
This should work what build are you using and what is the problem does your select screen still have characters you did not allow ?
I'm using an older build. I can get back to you on the exact number. And yes, basically on the "select your player" you can choose anyone instead of the allowselect character I choose. But allowselect does work if I die and continue in st1 or any other stage.

I have st1 and st1b in the same folder named st1. for st1b I'm not using allowselect but for st1 I am. could this be the issue?
 
Is there a way to use allowselect before starting the very first stage?

There is a way 😉 but it has a catch 😒. The method is by using skipselect + custom select screen in levels.txt. Skipselect skips default select screen to allow custom select screen to replace that. You can declare allowselect in the custom select screen which put it in effect before very first stage.
The catch is with skipselect also in effect, any player continuing or joining in mid level will be forced to play as defined character.

There are 2 other ways to control allowed heroes:
1. Know the heroes first then load them later.
As name implies, locked heroes are declared with know in models.txt. These heroes won't appear in select screen. Then in certain levels or by certain entity, those heroes are unlocked.
2. Scripted lock and unlock.
Script can be used to prevent certain heroes appear in select screen. You can read the details here: Lock and unlock script.
 
I'll contribute an example here sense my current project uses Skipselect and Allowselect
set Sonic_ZX##########################
maxplayers 4
lives 1
credits 15
noshare 1
musicoverlap 1
typemp 0
skipselect
select data/SelZX.txt

And here's the SelZX.txt located in my data folder
music data/music/LastFirstbornDrevRemix.ogg 1
background data/Bgs/SelectZX.gif
allowselect SONIC_ZX KNUCKLES_ZX SALLY_ZX BUNNIE_ZX VECTOR_EX TURBO_ZX SHADOW_EX
This way @PS_VITA you can compare your files to mine and see if you got everything what way you need it.

x)
 
I'll contribute an example here sense my current project uses Skipselect and Allowselect


And here's the SelZX.txt located in my data folder

This way @PS_VITA you can compare your files to mine and see if you got everything what way you need it.

x)

@DJGameFreakTheIguana
This worked out after I erased the sav files and everything works great!

I had to also include nosame 1 1
because I didn't want P1 and P2 to be able to select the same character.

other than that everything works great, thank you!
 
Last edited:
Solution
There is a way 😉 but it has a catch 😒. The method is by using skipselect + custom select screen in levels.txt. Skipselect skips default select screen to allow custom select screen to replace that. You can declare allowselect in the custom select screen which put it in effect before very first stage.
The catch is with skipselect also in effect, any player continuing or joining in mid level will be forced to play as defined character.

There are 2 other ways to control allowed heroes:
1. Know the heroes first then load them later.
As name implies, locked heroes are declared with know in models.txt. These heroes won't appear in select screen. Then in certain levels or by certain entity, those heroes are unlocked.
2. Scripted lock and unlock.
Script can be used to prevent certain heroes appear in select screen. You can read the details here: Lock and unlock script.
@Bloodbane
I'm trying to use skipselect for the training stage and story.

skip select works for story mode
but it's not working for training.
It just goes to default character select screen.

it's possible to use skipselect in more than one game mode?
 
Last edited:
@Bloodbane
I'm trying to use skipselect for the training stage and story.

skip select works for story mode
but it's not working for training.
It just goes to default character select screen.

it's possible to use skipselect in more than one game mode?

Okay I just confirmed that it does work and my mistake was with naming a player incorrectly.
 
Back
Top Bottom