| Author |
Message |
|
Altaircz
|
Post subject: Team need it, workers need it!! Posted: Sat May 09, 2009 1:07 pm |
|
Joined: Thu May 07, 2009 9:34 am Posts: 23
|
I write here a few ideas that I would like to implement. You can write down the next and then I put here.
If anyone knows how to do, whether write a solution.
So ... my ideas:
•New features xD  •enter able building •Solution of double Esc (for menu) - Complete •Save/Load game (first only position) - Complete •Separate the music and effect volume •New MAPs •New Models (objects) •Weapon system •Missions •Multiplyer game •Better working with scripts
Solution of 3. :
This code paste to freeride.tsl . Now, if you hit esc, the Pause menu pop up and, if you hit 2nd time the PauseMenu will disappears. Thanks to PimpDaddy, well done!!
Code: unload 'MainMenu'; load 'PauseMenu';
event esc() {
if (false == $engine.paused) { $engine.paused = true; $pauseMenu.fadeTo(1); $pauseMenu.toFront(); } else if (true == $engine.paused) { $pauseMenu.fadeTo(0); $engine.paused = false; } }
Solution of 4. : Fisrt create file in windows note named save.tsl with this code: Code: $savex = $engine.player.x; $savey = $engine.player.y; $savez = $engine.player.z;
And in pausemenu or other menu with u create paste this code: Code: createMenuBtn('Save', 'load "save"; $sl.fadeTo(0); $engine.paused = false;', $menu); createMenuBtn('Load', '$engine.player.x = $savex; $engine.player.y = $savey+2; $engine.player.z = $savez; $sl.fadeTo(0); $engine.paused = false;', $menu);
this will create 2 buttons. First for save and Second for Load.
well, second we have now next!
Last edited by Altaircz on Mon May 11, 2009 8:48 pm, edited 9 times in total.
|
|
| Top |
|
 |
|
PimpDaddy
|
Post subject: Posted: Sat May 09, 2009 9:25 pm |
|
Joined: Mon May 04, 2009 8:46 am Posts: 30
|
Altaircz wrote: Solution of double Esc (for menu) Divide the music and sound volume
What do you mean by these?
|
|
| Top |
|
 |
|
Altaircz
|
Post subject: Posted: Sat May 09, 2009 9:41 pm |
|
Joined: Thu May 07, 2009 9:34 am Posts: 23
|
1. when i configure Esc to pause menu and open it and open it 2nd. 1st dont close. i can open and open and open ... The game wasnt resume. Game was freeze!! Do you understand ??
2. Music volume and Effect volume was same!! i want increase music, but i increase effect volume too.
sorry I am Czech and my English would need to improve xD
|
|
| Top |
|
 |
|
PimpDaddy
|
Post subject: Posted: Sat May 09, 2009 10:34 pm |
|
Joined: Mon May 04, 2009 8:46 am Posts: 30
|
|
Ok, it seems for volume that there are seperate things for sound and music (if you look in settings.ini). Maybe you need to adjust the options values instead of the engines values? You'll probably need to apply the changes somehow after you adjust them.
And with the pause menu not exiting, I see what you mean. All I can think of is that the event esc {} is in both MainMenu.tsl and PauseMenu.tsl, so when you press escape, it executes the MainMenu.tsl Esc event (which loads the pause menu), so that could be why.
|
|
| Top |
|
 |
|
Altaircz
|
Post subject: Posted: Sun May 10, 2009 7:32 am |
|
Joined: Thu May 07, 2009 9:34 am Posts: 23
|
PimpDaddy wrote: Ok, it seems for volume that there are seperate things for sound and music (if you look in settings.ini). Maybe you need to adjust the options values instead of the engines values? You'll probably need to apply the changes somehow after you adjust them. Well, it's in settings.ini Although separate, but when you look into freeride.tsl and increase the volume of music in the car, increase the sound of the engine. Here: Code: $engine.musicName = 'sound122.mp3'; $engine.musicVolume = 10.0; PimpDaddy wrote: And with the pause menu not exiting, I see what you mean. All I can think of is that the event esc {} is in both MainMenu.tsl and PauseMenu.tsl, so when you press escape, it executes the MainMenu.tsl Esc event (which loads the pause menu), so that could be why. I would able to write a script, but in C # and would look as follows: Code: event esc() {
if ($engine.paused = false) { load 'PauseMenu'; load 'spawner'; load 'set'; $engine.paused = true; $pauseMenu.fadeTo(1); $pauseMenu.toFront(); }
else if ($engine.paused = true) { unload 'PauseMenu'; unload 'spawner'; unload 'set'; $engine.paused = false; $pauseMenu.fadeTo(0); } }
But the problem is that this is not C # but Delphi.
|
|
| Top |
|
 |
|
PimpDaddy
|
Post subject: Posted: Sun May 10, 2009 10:33 am |
|
Joined: Mon May 04, 2009 8:46 am Posts: 30
|
Altaircz, thanks for posting your code, from that I was able to figure out how to do what you wanted.
It seems that if you want to evaluate something in a script, you have to do it the other way round.
Eg.
Most programming languages:
Code: if ($test == true) { Do something } TSS Scripting language: Code: if (true == $test) { Do something }
So with that, I made the scripts:
http://www.sendspace.com/file/b4e12g
For people that want to use them, you will probably need Altaircz modified pause menu, main menu, etc.
Last edited by PimpDaddy on Tue May 12, 2009 5:56 am, edited 2 times in total.
|
|
| Top |
|
 |
|
Altaircz
|
Post subject: Posted: Sun May 10, 2009 2:12 pm |
|
Joined: Thu May 07, 2009 9:34 am Posts: 23
|
|
PimpDaddy say what do you want to add to game.
|
|
| Top |
|
 |
|
PimpDaddy
|
Post subject: Posted: Mon May 11, 2009 3:57 am |
|
Joined: Mon May 04, 2009 8:46 am Posts: 30
|
|
I can think of a few things that would be nice to add.
Things that make developing easier, like documenting the scripting language variables/functions, and documentation for the source code as well, such as how to add new functions/variables that you can access using the scripting language.
And a gun would be quite cool to have in the game, from looking in the source code a pistol is in there, just not complete yet. I don't know how feasible it is to try and get the pistol to work properly, but I might look into it.
|
|
| Top |
|
 |
|
PimpDaddy
|
Post subject: Re: Team need it, workers need it!! Posted: Thu May 14, 2009 4:26 am |
|
Joined: Mon May 04, 2009 8:46 am Posts: 30
|
Altaircz wrote: •Better working with scripts What do you mean by this Altaircz? Altaircz wrote: •Separate the music and effect volume
I think you should be able to cross this one off with the options variable added to scripting. When you want to change the sound volume you would just do:
$options.SoundVolume = <whatever>
and the same for music volume:
$options.MusicVolume = <whatever>
I haven't tried it, but I assume it should work like that.
And nice work on the save and load feature.
It would be cool if you could get that to work with a save file, so it would be a permanent save.
|
|
| Top |
|
 |