Vice City: Multiplayer

Server Development => Community Plugins => Topic started by: Shadow on August 23rd, 2016, 10:38 AM

Title: [C++] Vice Racing
Post by: Shadow on August 23rd, 2016, 10: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 August 23rd, 2016, 11: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 August 23rd, 2016, 11: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: Doom_Kill3R on August 23rd, 2016, 11: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 August 23rd, 2016, 11:40 AM
well you could use CreateCheckpoint instead of pickups buts its your choice
Title: Re: Vice Racing
Post by: Shadow on August 23rd, 2016, 12:01 PM
Quote from Doom_Kill3R on August 23rd, 2016, 11: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.
-> 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 August 23rd, 2016, 11:40 AM
well 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 August 23rd, 2016, 12:15 PM
oh shit :( didnt know
Title: Re: Vice Racing
Post by: Shadow on August 23rd, 2016, 02:13 PM
Changelog 23/08/2016 [4:12 PM local time]


Server is back online.
Title: Re: Vice Racing
Post by: Murdock on August 23rd, 2016, 04:24 PM
No zombie peds. Disappointed
Title: Re: Vice Racing
Post by: KAKAN on August 23rd, 2016, 05: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 August 24th, 2016, 08:21 AM
Changelog 24/08/2016 [10:21 PM local time]

Title: Re: Vice Racing
Post by: RDXing_KR on August 24th, 2016, 08:50 AM
Nice work , i had a test :)
Title: Re: Vice Racing
Post by: Shadow on August 24th, 2016, 08:55 AM
Quote from RDXing_KR on August 24th, 2016, 08:50 AM
Nice 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 August 25th, 2016, 09:07 AM
Quote from Shadow on August 24th, 2016, 08:21 AM
  • Changed IP to viceracing.ddns.net. Port is still 8192
(http://i3.kym-cdn.com/entries/icons/facebook/000/000/554/facepalm.jpg)
Title: Re: Vice Racing
Post by: Shadow on August 26th, 2016, 03:11 PM
Changelog 26/08/2016 [5:10 PM local time]

Title: Re: Vice Racing
Post by: Piterus on August 26th, 2016, 05:57 PM
Hey Shadow! Nice server, nice map ;)
Title: Re: Vice Racing
Post by: Shadow on August 26th, 2016, 08:10 PM
Quote from Piterus on August 26th, 2016, 05:57 PM
Hey 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 August 26th, 2016, 08:59 PM
Good idea... microsecond accuracy when our pings are more than milliseconds
Title: Re: Vice Racing
Post by: Shadow on August 26th, 2016, 10:08 PM
Quote from EK.CrystalBlue on August 26th, 2016, 08:59 PM
Good 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 August 27th, 2016, 06:40 AM
Sprints are cool for me.
Title: Re: Vice Racing
Post by: KAKAN on August 27th, 2016, 08: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 August 27th, 2016, 12:10 PM
When will the server be hosted???
Title: Re: Vice Racing
Post by: Shadow on August 27th, 2016, 12:34 PM
Quote from Shovon^ on August 27th, 2016, 12:10 PM
When 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 August 27th, 2016, 01: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 August 27th, 2016, 01:59 PM
Quote from EK.CrystalBlue on August 27th, 2016, 01: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
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 August 27th, 2016, 02:41 PM
Quote from Shadow on August 27th, 2016, 01:59 PM
Also, 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 August 27th, 2016, 03:53 PM
Quote from KAKAN on August 27th, 2016, 02:41 PM
Quote from Shadow on August 27th, 2016, 01:59 PM
Also, 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 August 27th, 2016, 04:44 PM
How about circuit races? :3
Title: Re: Vice Racing
Post by: Shadow on August 27th, 2016, 05:21 PM
Quote from Xmair on August 27th, 2016, 04:44 PM
How 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 August 27th, 2016, 09: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 August 28th, 2016, 09: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 August 28th, 2016, 10:28 AM
Quote from Kewun on August 28th, 2016, 09:18 AM
You 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 August 28th, 2016, 04:47 PM
Changelog 28/08/2016 [18:46 PM local time]

Title: Re: Vice Racing
Post by: PunkNoodle on August 29th, 2016, 12:33 AM
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

(http://i.imgur.com/JMwNsBb.png?1)

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.

(http://i.imgur.com/dKWPdj6.jpg?1)

(http://i.imgur.com/yor0eG2.png?1)

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

(http://i.imgur.com/zCKnP1F.jpg)

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.

(http://i.imgur.com/6h58sQb.png?1)

(http://i.imgur.com/JZWCzAs.jpg)

Title: Re: Vice Racing
Post by: Shadow on August 29th, 2016, 01:08 AM
Quote from ...kneedl_ on August 29th, 2016, 12:33 AM
...

#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 February 22nd, 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 February 22nd, 2019, 06:41 PM
Quote from Shadow on February 22nd, 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.
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 March 17th, 2019, 06:42 PM
Quote from Xmair on February 22nd, 06:41 PM
Quote from Shadow on February 22nd, 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.
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 March 18th, 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 March 18th, 2019, 02:13 PM
Quote from Xmair on March 18th, 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/
Thank you so very much!