Vice City: Multiplayer

Server Development => Community Plugins => Topic started by: Shadow on Aug 23, 2016, 09:38 AM

Title: [C++] Vice Racing
Post by: Shadow on Aug 23, 2016, 09:38 AM
[img]http://i.imgur.com/FLXy9WZ.png[/img

Commands

/lastcp - Returns you to the last checkpoint.
/reportbug - Reports a bug and allows it to be seen by the developer(s).



Bugs/Crashes

Please leave any bugs/crash reports below and try to describe them in detail. The server is still in beta and has a few tracks.




Credits

  • S.L.C - for teaching me better C++ practices and how to optimize my code and helping me with ideas and fixes.
Title: Re: Vice Racing
Post by: Kewun on Aug 23, 2016, 10:09 AM
good, 10/10 , but a suggestion

add radar markers to checkpoints

and i think i found a error in race?

in logs,

[11:52:37]  0 (Kewun) 0 Broken A9514D
[11:52:37]  0 (Kewun) 0 Broken Z1502Q

it was a stinger race, the one with 112 cpoints
Title: Re: Vice Racing
Post by: Shadow on Aug 23, 2016, 10:17 AM
I find that too and I think it has to deal with VC:MP, my server doesn't print anything on white, nor does it print anything like that. Errors are not always messaged, and when they are, they appear in red. Thanks for the review :)
Title: Re: Vice Racing
Post by: DizzasTeR on Aug 23, 2016, 10:38 AM
I gave a visit, so you also had no choice other than using pickups eh? well that's okay but  I'd like to point a few things out;

- The rotation of pickups is messed up, I noticed that most of them rotate towards the North on radar and its hard to guess where exactly you have to go ahead

- During a race I drowned myself and then the race never started for me again.
Title: Re: Vice Racing
Post by: Kewun on Aug 23, 2016, 10:40 AM
well you could use CreateCheckpoint instead of pickups buts its your choice
Title: Re: Vice Racing
Post by: Shadow on Aug 23, 2016, 11:01 AM
Quote from: Doom_Kill3R on Aug 23, 2016, 10:38 AMI gave a visit, so you also had no choice other than using pickups eh? well that's okay but  I'd like to point a few things out;

- The rotation of pickups is messed up, I noticed that most of them rotate towards the North on radar and its hard to guess where exactly you have to go ahead

- During a race I drowned myself and then the race never started for me again.

-> The rotation is how VCMP returns it. I don't think there are any gimbal locks. It'd be helpful to point which track you had this issue on aswell :p. The function which spawns the pickups returns left and right coordinates relative to the middle pickups and the angle which was used to record the track. The thing is, I have a client script arrow sprite which will point to the next checkpoint but it's unusable because GUI elements have no rotation.

-> Yes, I disabled the event because I am working on a fix for the spawn event which crashes players when they are put back in the race.



Quote from: Kewun on Aug 23, 2016, 10:40 AMwell you could use CreateCheckpoint instead of pickups buts its your choice

See this: http://forum.vc-mp.org/?topic=3548.0
Title: Re: Vice Racing
Post by: Kewun on Aug 23, 2016, 11:15 AM
oh shit :( didnt know
Title: Re: Vice Racing
Post by: Shadow on Aug 23, 2016, 01:13 PM
Changelog 23/08/2016 [4:12 PM local time]


Server is back online.
Title: Re: Vice Racing
Post by: Murdock on Aug 23, 2016, 03:24 PM
No zombie peds. Disappointed
Title: Re: Vice Racing
Post by: KAKAN on Aug 23, 2016, 04:11 PM
http://forum.vc-mp.org/?topic=3444.0
@Stormeus, now you need to make it official :p
Title: Re: Vice Racing
Post by: Shadow on Aug 24, 2016, 07:21 AM
Changelog 24/08/2016 [10:21 PM local time]

Title: Re: Vice Racing
Post by: RDXing_KR on Aug 24, 2016, 07:50 AM
Nice work , i had a test :)
Title: Re: Vice Racing
Post by: Shadow on Aug 24, 2016, 07:55 AM
Quote from: RDXing_KR on Aug 24, 2016, 07:50 AMNice work , i had a test :)

Thanks. Please, let me know on this topic as soon as possible if you encounter any bugs/crashes.
Title: Re: Vice Racing
Post by: EK.IceFlake on Aug 25, 2016, 08:07 AM
Quote from: Shadow on Aug 24, 2016, 07:21 AM
  • Changed IP to viceracing.ddns.net. Port is still 8192
(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi3.kym-cdn.com%2Fentries%2Ficons%2Ffacebook%2F000%2F000%2F554%2Ffacepalm.jpg&hash=cfd71a1715978a40286afa29b80fe0deaf51208b)
Title: Re: Vice Racing
Post by: Shadow on Aug 26, 2016, 02:11 PM
Changelog 26/08/2016 [5:10 PM local time]

Title: Re: Vice Racing
Post by: Piterus on Aug 26, 2016, 04:57 PM
Hey Shadow! Nice server, nice map ;)
Title: Re: Vice Racing
Post by: Shadow on Aug 26, 2016, 07:10 PM
Quote from: Piterus on Aug 26, 2016, 04:57 PMHey Shadow! Nice server, nice map ;)

Thanks. On that note, I would like to ask people what kind of tracks would they like to see most? Circuits? Sprints? Drag races?
Also, if you have a map mod that is suitable for races, let me know and I'll add it asap. :)
Title: Re: Vice Racing
Post by: EK.IceFlake on Aug 26, 2016, 07:59 PM
Good idea... microsecond accuracy when our pings are more than milliseconds
Title: Re: Vice Racing
Post by: Shadow on Aug 26, 2016, 09:08 PM
Quote from: EK.CrystalBlue on Aug 26, 2016, 07:59 PMGood idea... microsecond accuracy when our pings are more than milliseconds

The function used returns the time with microsecond accuracy. It is also used for other things such as timing events. I don't see what's your problem and why do you care about 4 bytes of memory which aren't even on your machine. Performance is still significantly better because no squirrel is involved. If you really want to mindlessly comment on something, go comment on open-source plugins like the official squirrel plugin and maybe help with pull requests.
Title: Re: Vice Racing
Post by: Kewun on Aug 27, 2016, 05:40 AM
Sprints are cool for me.
Title: Re: Vice Racing
Post by: KAKAN on Aug 27, 2016, 07:18 AM
All the kinds are OK for me, but my fav. is Sprint as it's the most easiest one to do :p
Title: Re: Vice Racing
Post by: Shovon^ on Aug 27, 2016, 11:10 AM
When will the server be hosted???
Title: Re: Vice Racing
Post by: Shadow on Aug 27, 2016, 11:34 AM
Quote from: Shovon^ on Aug 27, 2016, 11:10 AMWhen will the server be hosted???

Once the linux version works as expected. Which shouldn't be too far from now. The server is still in some sort of beta because there are some bugs that occur at times but I need to find out why they happen. So I'd be thankful if people could report when and how bugs happen to them using /reportbug and then post about it here. Please report anything you find weird or strange. I'll get back to you as soon as possible.
Title: Re: Vice Racing
Post by: EK.IceFlake on Aug 27, 2016, 12:11 PM
Well, what is the use of microsecond accuracy when your ping is on the order of milliseconds...
my point is, the 'microsecond accuracy' is going to be a few milliseconds off, and the low pingers will get an advantage over the high pingers

Not that I care about it
Title: Re: Vice Racing
Post by: Shadow on Aug 27, 2016, 12:59 PM
Quote from: EK.CrystalBlue on Aug 27, 2016, 12:11 PMWell, what is the use of microsecond accuracy when your ping is on the order of milliseconds...
my point is, the 'microsecond accuracy' is going to be a few milliseconds off, and the low pingers will get an advantage over the high pingers

Not that I care about it

On the same logic, what is the use of player sync in VC:MP when laggers are not going to have a decent gameplay due to the high pings.



Also, please suggest some map modes that you would like to see added in the server (e.g: Deathsquad Interstate 420-C).
Title: Re: Vice Racing
Post by: KAKAN on Aug 27, 2016, 01:41 PM
Quote from: Shadow on Aug 27, 2016, 12:59 PMAlso, please suggest some map modes that you would like to see added in the server (e.g: Deathsquad Interstate 420-C).
I can suggest some, but I think you can't add them due to copyrights...
Here's my suggestion( from Asphalt 8: Airbone ):
I've a lot more maps :p
Title: Re: Vice Racing
Post by: Shadow on Aug 27, 2016, 02:53 PM
Quote from: KAKAN on Aug 27, 2016, 01:41 PM
Quote from: Shadow on Aug 27, 2016, 12:59 PMAlso, please suggest some map modes that you would like to see added in the server (e.g: Deathsquad Interstate 420-C).
I can suggest some, but I think you can't add them due to copyrights...
Here's my suggestion( from Asphalt 8: Airbone ):
  • Sector 8
  • London
  • Barcelona
I've a lot more maps :p

Preferably, maps that are already released on VC modding sites, I forgot to specify :p. And no, I won't convert maps from other games because of obvious reasons.
Title: Re: Vice Racing
Post by: Xmair on Aug 27, 2016, 03:44 PM
How about circuit races? :3
Title: Re: Vice Racing
Post by: Shadow on Aug 27, 2016, 04:21 PM
Quote from: Xmair on Aug 27, 2016, 03:44 PMHow about circuit races? :3

They are scheduled for the next update. Currently working on fixing bugs and getting the linux version to work.
Title: Re: Vice Racing
Post by: Shadow on Aug 27, 2016, 08:29 PM
Changelog 27/08/2016 [11:29 PM local time]


Big thanks to @. for helping me with setting up the VM and compiling the plugin.
Title: Re: Vice Racing
Post by: Kewun on Aug 28, 2016, 08:18 AM
You should create a race builder for some players who want create their own races. ( if you trust them? )
Title: Re: Vice Racing
Post by: Shadow on Aug 28, 2016, 09:28 AM
Quote from: Kewun on Aug 28, 2016, 08:18 AMYou should create a race builder for some players who want create their own races. ( if you trust them? )

There is one already (which I use) but it's not the easiest thing to use, so I don't think it's a good idea.
Title: Re: Vice Racing
Post by: Shadow on Aug 28, 2016, 03:47 PM
Changelog 28/08/2016 [18:46 PM local time]

Title: Re: Vice Racing
Post by: PunkNoodle on Aug 28, 2016, 11:33 PM
The server looks promising I had a go tonight with four races I think, still I'd like to see some features that aren't there yet but since the server is still being worked on I'm quite sure I'll see them implemented at a later time, whether I tell you them or not. As for bugs I noticed a few, some aren't even exactly bugs, well let's cut it short:

1. GUI, I can't see the number of total checkpoints anymore after the checkpoints I passed are more than nine, my resolution is 1600x900

(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FJMwNsBb.png%3F1&hash=d7caff4254ce9c47ca91b8b4ca6fa8dab45c2f72)

2. Finish time, while the record time shown at the start seems correct, the displayed finishing time seems incorrect

I suppose I finished the first race in 1:40 minutes, not 1.40 seconds as it looks.

(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FdKWPdj6.jpg%3F1&hash=b5218ad1ad87b3b946b18d205f2639b9a461d1e5)

(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi.imgur.com%2Fyor0eG2.png%3F1&hash=87aa39c4bee2df55964b942b9fe6501208d8d541)

3. Trees, some of the vanilla map's trees are stuck in the highway, could you hide them?

(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FzCKnP1F.jpg&hash=7c2ce8a5b5be463483606308fd931b9250bc4c29)

4. [NOT BUG] Cars, I was racing against a player who had a different car, while the idea of having different cars might be nice, I didn't like that despite driving at full speed and at full fps, the guy was able to catch up with me due to having a car with an higher speed limit. If you check my speed, checkpoint and radar you'll see that I was always driving in a straight lane and my speed was always 210 km/h.

(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi.imgur.com%2F6h58sQb.png%3F1&hash=706f77e7f2d8941a08a5d6de0dc37c4ea932e989)

(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FJZWCzAs.jpg&hash=5dd8d0725805477c244b3b2feaf7eafdbaf58e20)

Title: Re: Vice Racing
Post by: Shadow on Aug 29, 2016, 12:08 AM
Quote from: ...kneedl_ on Aug 28, 2016, 11:33 PM...

#1 is due to the relativity of resolutions, I'll work more on the formulas for that one then.
Fixed
#2 is related to the way the time is returned in linux. Will look into it. Fixed
#3 is due to how the map is made. I'll look into that aswell but it's probably last on my priority list
#4: Some races have mixed cars retrieved using GetHandlingValueData to level the playing field. Despite that, some cars are faster than others. I'll look into mixed car races and do more research on my own to provide better races.

Thanks for reporting those bugs! I'll start working on them tomorrow. Also, feel free to leave any suggestions here, I'm eager to hear them.
Title: Re: Vice Racing
Post by: Shadow on Feb 22, 2017, 09:22 PM
Decided to go open-source.


Feel free to use the source of this project. It is currently available at https://bitbucket.org/shadow6432/vc-mp-racing-server-module-0.4 . I won't have much time to develop it and make tracks for it so it's quite a giveaway for anyone who understands some C++.

This sadly marks the end of this project, or the indefinite postponement of it. This topic might be moved to community plugins section.
Title: Re: [C++] Vice Racing
Post by: Xmair on Feb 22, 2019, 06:41 PM
Quote from: Shadow on Feb 22, 2017, 09:22 PMDecided to go open-source.


Feel free to use the source of this project. It is currently available at https://bitbucket.org/shadow6432/vc-mp-racing-server-module-0.4 . I won't have much time to develop it and make tracks for it so it's quite a giveaway for anyone who understands some C++.

This sadly marks the end of this project, or the indefinite postponement of it. This topic might be moved to community plugins section.
Hey, I know I'm bumping this topic but that link is dead, can you put life into it?
Title: Re: [C++] Vice Racing
Post by: MatheuS on Mar 17, 2019, 06:42 PM
Quote from: Xmair on Feb 22, 2019, 06:41 PM
Quote from: Shadow on Feb 22, 2017, 09:22 PMDecided to go open-source.


Feel free to use the source of this project. It is currently available at https://bitbucket.org/shadow6432/vc-mp-racing-server-module-0.4 . I won't have much time to develop it and make tracks for it so it's quite a giveaway for anyone who understands some C++.

This sadly marks the end of this project, or the indefinite postponement of it. This topic might be moved to community plugins section.
Hey, I know I'm bumping this topic but that link is dead, can you put life into it?

bump!!!
Title: Re: [C++] Vice Racing
Post by: Xmair on Mar 18, 2019, 01:33 PM
Shadow sent me the new link some time ago so I thought I'd share it here: https://bitbucket.org/DFR32/vc-mp-racing-server-module-0.4/
Title: Re: [C++] Vice Racing
Post by: dracc on Mar 18, 2019, 02:13 PM
Quote from: Xmair on Mar 18, 2019, 01:33 PMShadow sent me the new link some time ago so I thought I'd share it here: https://bitbucket.org/DFR32/vc-mp-racing-server-module-0.4/
Thank you so very much!