SA-MP Forums Archive
[FilterScript] Random Race Generator (RouteConnector Contest) --- Create randomized races dynamically! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Random Race Generator (RouteConnector Contest) --- Create randomized races dynamically! (/showthread.php?tid=437708)

Pages: 1 2 3 4


Re: Random Race Generator (RouteConnector Contest) --- Create randomized races dynamically! - Inn0cent - 01.06.2014

Nice race system i've ever seen, I'll try to test out and will find some bugs if there are.


Re: Random Race Generator (RouteConnector Contest) --- Create randomized races dynamically! - iRaiDeN - 01.06.2014

Great Job!


Re: Random Race Generator (RouteConnector Contest) --- Create randomized races dynamically! - Team_PRO - 01.06.2014

Liked!


Re: Random Race Generator (RouteConnector Contest) --- Create randomized races dynamically! - Basssiiie - 01.06.2014

Thanks for all the kind responses!

Quote:
Originally Posted by Zitteke
Посмотреть сообщение
Great job, Basssiiie

(It's vice, lol)
Hi Vice, good to see you!

Quote:
Originally Posted by HeLiOn_PrImE
Посмотреть сообщение
still no update?
I'm sorry, it's finally here. I hope you like it!

Quote:
Originally Posted by Inn0cent
Посмотреть сообщение
Nice race system i've ever seen, I'll try to test out and will find some bugs if there are.
Thanks! I would love to hear what you find out.



Update v1.2

Finally it is here! Update 1.2. It took some time (10 months), but I hope it was worth the wait.

Main features: Screenshots:










Download and full changelog in the first post.


Re: Random Race Generator (RouteConnector Contest) --- Create randomized races dynamically! - ZachKnoxx - 01.06.2014

LOL I thought this was about your national race(black, white, hispanic), good work though.


Re: Random Race Generator (RouteConnector Contest) --- Create randomized races dynamically! - HeLiOn_PrImE - 02.06.2014

OMG THANK YOU!!!


Re: Random Race Generator (RouteConnector Contest) --- Create randomized races dynamically! - Zitteke - 02.06.2014

Awesome release.


Re: Random Race Generator (RouteConnector Contest) --- Create randomized races dynamically! - HeLiOn_PrImE - 03.06.2014

one question. I made a car repair function on pressing the submission button (2). How can I make it NOT work when in a race?


Re: Random Race Generator (RouteConnector Contest) --- Create randomized races dynamically! - SyntaxQ - 03.06.2014

This looks amazing
Impressive release!


Re: Random Race Generator (RouteConnector Contest) --- Create randomized races dynamically! - HeLiOn_PrImE - 03.06.2014

Quote:
Originally Posted by Basssiiie
Посмотреть сообщение
You could either use the new include system, which gives great control over the race script.
forward onPlayerJoinRace(playerid, raceid);

That's what I was searching for, but didn't find it at start. I guess it's problem solved. You're brilliant.


Re: Random Race Generator (RouteConnector Contest) --- Create randomized races dynamically! - Basssiiie - 04.06.2014

Quote:
Originally Posted by HeLiOn_PrImE
Посмотреть сообщение
forward onPlayerJoinRace(playerid, raceid);

That's what I was searching for, but didn't find it at start. I guess it's problem solved. You're brilliant.
Great to hear you are using the include system! If you think anything could be improved, just let me know. By the way, you can also use getPlayerRace(playerid) to check if the player is in any race. It will return -1 if not, and any other number if the player is in a race.


Re: Random Race Generator (RouteConnector Contest) --- Create randomized races dynamically! - HeLiOn_PrImE - 07.06.2014

Quote:
Originally Posted by Basssiiie
Посмотреть сообщение
Great to hear you are using the include system! If you think anything could be improved, just let me know. By the way, you can also use getPlayerRace(playerid) to check if the player is in any race. It will return -1 if not, and any other number if the player is in a race.
Yeah, I've studied the document and I want to build an entire admin system around it. I want to make server sided money with all the scripts. But I am thinking about, either using this method (included in a script), or use it as a gm and put everything around it. The code is pretty big, and the server I'm working for is not just about racing.

And speaking of improvements, I don't know if it's easy to implement but some people would use a callback for when a player passes another player (he switches his place with another one). I saw a script yesterday with a 3d speedometer and I thought about NFS games. Players would have their place number attached to them all the time and it would change when they pass or get passed by. Maybe you could implement that yourself, idk. It's just an idea.


Re: Random Race Generator (RouteConnector Contest) --- Create randomized races dynamically! - Basssiiie - 08.06.2014

Good point! I will look into it. At the moment, internally, the current positions are only checked (and changed) if one of the contestants hits a checkpoint, but maybe it's better to put it in a 250ms timer or something. Not sure though. Attaching a new callback to it shouldn't be a big problem though in either scenario.


Re: Random Race Generator (RouteConnector Contest) --- Create randomized races dynamically! - HeLiOn_PrImE - 08.06.2014

If it causes no lag, than sure, but I would make that 0.5 seconds. The players won't be paying attention on how fast their position gets updated in mid race.
Plus, if they have a slow internet, they will experience latency anyway. I'd keep a lower amount of work for the server unit.

Anyway, how do you suggest I use your script for a stunt/race/dm/freeroam server? Included in another fs, or start with it as a gm, and build around it?

I'll look into more ways of improvement.


Re: Random Race Generator (RouteConnector Contest) --- Create randomized races dynamically! - Simoer - 08.06.2014

Epic!!!!!! Good job!


Re: Random Race Generator (RouteConnector Contest) --- Create randomized races dynamically! - malikmna - 19.07.2016

[04:02:42] Loading plugin: RouteConnectorPlugin.so
[04:02:42] Failed (libtbb.so.2: cannot open shared object file: No such file or directory)
[04:02:42] Loading plugin: streamer.so

any idea how to fix it on linux server tell me where to put this libtbb.so.2


Re: Random Race Generator (RouteConnector Contest) --- Create randomized races dynamically! - malikmna - 22.07.2016




Re: Random Race Generator (RouteConnector Contest) --- Create randomized races dynamically! - Basssiiie - 26.09.2016

v1.2.1 released!

After years of inactivity, I released a minor update where I fixed one bug. I also put the whole thing onto GitHub, which you can find here. I might add some more features in the future if there's still interest in this script.


Quote:
Originally Posted by malikmna
Посмотреть сообщение
[04:02:42] Loading plugin: RouteConnectorPlugin.so
[04:02:42] Failed (libtbb.so.2: cannot open shared object file: No such file or directory)
[04:02:42] Loading plugin: streamer.so

any idea how to fix it on linux server tell me where to put this libtbb.so.2
Make sure your Linux server has IntelTBB installed. Gamer_Z, the maker of RouteConnector plugin, says in his topic this:

Quote:

IntelTBB missing on linux?

https://www.threadingbuildingblocks.org/download

download the linux binaries and install the 'ia32' redistribution.

Or:
Код:
sudo apt-get install libtbb-dev
sudo apt-get install libtbb2
Good luck!


Re: Random Race Generator (RouteConnector Contest) --- Create randomized races dynamically! - PT - 26.09.2016

Its really good see you keep updating this.

Is good to have an old member keep using this.

cheers


Re: Random Race Generator (RouteConnector Contest) --- Create randomized races dynamically! - ActionTanki91 - 28.09.2016

I love your fs !