Resetting levels

Talk about your new mod or map here

Moderators: jelco, bert_the_turtle

amandioc2
level1
level1
Posts: 45
Joined: Thu Jul 27, 2006 3:27 am

Resetting levels

Postby amandioc2 » Mon Aug 21, 2006 5:01 pm

Is is possible to allow resetting a finished level in a mod?
If not, can a savegame be changed to do it ?
Thanks.
User avatar
xander
level5
level5
Posts: 16869
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Postby xander » Mon Aug 21, 2006 5:06 pm

Once you finish a level, you cannot reset it. You can kind of reset a level by deleting its file from your user folder, but this isn't guarenteed to work, as there are still lines in game.txt that will show the objectives having been completed. If you could explain why you want to reset a finished level, I might be able to help you a bit more.

xander
amandioc2
level1
level1
Posts: 45
Joined: Thu Jul 27, 2006 3:27 am

Postby amandioc2 » Mon Aug 21, 2006 9:17 pm

Thank you for you kind help.
I often want to replay a certain level. I was wandering if there was a way other then exiting and saving the user to a new folder everytime a level is finished.
Other question: Is it possible to add ogg music files and change a mod to play them during a level?

Amandio C
User avatar
xander
level5
level5
Posts: 16869
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Postby xander » Mon Aug 21, 2006 10:06 pm

amandioc2 wrote:Thank you for you kind help.
I often want to replay a certain level.

Well, you can always use the AccessAllAreas profile to get to any level, and replay it (assuming that the modder built a proper game_unlockall.txt).

amandioc2 wrote:Other question: Is it possible to add ogg music files and change a mod to play them during a level?

Yup. The easiest way is to simply replace any one of the music files with another file of the same name (in the sounds/ directory of your mod), and call that cue from a script (look at some of the scripts that IV created to see how that works). I believe that you can also add sounds/music with arbitrary file names, but I am not quite sure how that works.

xander
User avatar
trickfred
level5
level5
Posts: 1691
Joined: Sat Jul 24, 2004 5:01 am
Location: The Great White North, Eh?
Contact:

Postby trickfred » Mon Aug 21, 2006 10:21 pm

xander wrote:
amandioc2 wrote:Other question: Is it possible to add ogg music files and change a mod to play them during a level?

Yup. The easiest way is to simply replace any one of the music files with another file of the same name (in the sounds/ directory of your mod), and call that cue from a script (look at some of the scripts that IV created to see how that works). I believe that you can also add sounds/music with arbitrary file names, but I am not quite sure how that works.

xander


That works by modifying sounds.txt, which is simple enough in structure to figure out just by reading it. But since the game doesn't read a new sounds.txt from the mod directory, I haven't bothered actually implementing any changes in a mod thus far - I just do the 'replace with an ogg of the same name' game.
nihilesthetics2
level2
level2
Posts: 101
Joined: Mon Dec 12, 2005 11:18 pm

Postby nihilesthetics2 » Tue Aug 22, 2006 12:40 am

Its a damn shame. They obviously put a lot of effort into the sound modding capabilities with all the parameters and effects you can twiddle with. Then they omit the ability to include your own file in the mods folder, so nobody uses it. They know what we want. They should quit stalling and hand it over :D

N2
User avatar
xander
level5
level5
Posts: 16869
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Postby xander » Tue Aug 22, 2006 2:38 pm

nihilesthetics2 wrote:They should quit stalling and hand it over :D

Nihil, you're a bloody bastard, and I love you for it. <3 <3 <3

xander
nihilesthetics2
level2
level2
Posts: 101
Joined: Mon Dec 12, 2005 11:18 pm

Postby nihilesthetics2 » Tue Aug 22, 2006 9:12 pm

xander wrote:Nihil, you're a bloody bastard ...


Even at my most charming Ive offended your delicate sensibilities :P
amandioc2
level1
level1
Posts: 45
Joined: Thu Jul 27, 2006 3:27 am

Postby amandioc2 » Sat Aug 26, 2006 11:28 am

I still can't figure how the profile AccessAllAreas can allow me to replay a level in a mod. I tried it with mods that had a game_unlockall.txt included, but always got the main game world map.
User avatar
xander
level5
level5
Posts: 16869
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Postby xander » Sat Aug 26, 2006 3:53 pm

amandioc2 wrote:I still can't figure how the profile AccessAllAreas can allow me to replay a level in a mod. I tried it with mods that had a game_unlockall.txt included, but always got the main game world map.

You need to be using the AAA profile, and have the mod loaded.

xander
User avatar
trickfred
level5
level5
Posts: 1691
Joined: Sat Jul 24, 2004 5:01 am
Location: The Great White North, Eh?
Contact:

Postby trickfred » Sat Aug 26, 2006 10:54 pm

xander wrote:
amandioc2 wrote:I still can't figure how the profile AccessAllAreas can allow me to replay a level in a mod. I tried it with mods that had a game_unlockall.txt included, but always got the main game world map.

You need to be using the AAA profile, and have the mod loaded.

xander


Just to clarify, you need to load the mod first, then the AAA profile. When you load a mod, the profile always switches back to 'none'.

Return to “Mod Projects”

Who is online

Users browsing this forum: No registered users and 3 guests