Vice City: Multiplayer

VC:MP Discussion => Bugs and Crashes => Support => Closed Bug Reports => Topic started by: rww on April 18th, 2015, 09:52 PM

Title: Squirrel plugin small bug / player.IP return 0.0.0.0
Post by: rww on April 18th, 2015, 09:52 PM
GetVehicleModelFromName have some missings

After update missing too:
- Fbi Car
- FBI Rancher
- Pony

//============

Another bug:

Code: [Select]
function onPlayerPart(p,r)
{
print("[PART] ["+p.ID+"] [ "+p.Name+" ] IP: [ "+p.IP+" ] UID: [ "+p.UniqueID+" ]");
return 1;
}

(http://i57.tinypic.com/258yphc.png)
Title: Re: Squirrel plugin small bug / player.IP return 0.0.0.0
Post by: . on April 19th, 2015, 12:53 AM
Are you sure you got the names right? Could you show us the code you used for testing? Or, at least the names you used to call that function.
Title: Re: Squirrel plugin small bug / player.IP return 0.0.0.0
Post by: rww on April 19th, 2015, 01:02 AM
Quote from S.L.C on April 19th, 2015, 12:53 AM
Are you sure you got the names right? Could you show us the code you used for testing? Or, at least the names you used to call that function.
Yes, because in FunctionHandler.cpp

Code: [Select]
case 'b':
{
if( lowername[1] == 'o' )
{
if( strlen( lowername ) >= 3 )
{
if( lowername[2] == 'b' )
res = 152; // bobcat
else if( lowername[2] == 'x' )
res = 228; // boxville
}
}
else if( lowername[1] == 'a' )
{
if( strlen( lowername ) >= 3 )
{
if( lowername[2] == 'r' )
res = 163; // barracks ol
else if( lowername[2] == 'g' )
res = 215; // baggage handler
}
}
else if( lowername[1] == 'l' )
res = 226; // blista compact
else if( lowername[1] == 'e' )
res = 229; // benson

break;
}

where is banshee in this code?

I use /v [car name] for car spawn

/v blista work but /v banshee doesn't work etc...
Title: Re: Squirrel plugin small bug / player.IP return 0.0.0.0
Post by: Stormeus on April 19th, 2015, 01:07 AM
For bookkeeping purposes, please don't report two bugs in one thread. It makes tracking individual issues harder to deal with.

Some of those cars should already be tracked by Squirrel. Some of those cars don't even exist in VC (FBI Car is III; only the Cuban Jetmax exists in VC, what is Jetmax?). The rest will be handled accordingly.

Does the 0.0.0.0 issue occur always, often or rarely?
Title: Re: Squirrel plugin small bug / player.IP return 0.0.0.0
Post by: . on April 19th, 2015, 01:22 AM
This(http://pastebin.com/CuEa82rH) is the one that I use in my plugin. If you can remove the C++ specific code such as the algorithms used to clean the name and and the use of the standard string. Then you are free to use it in your code. I rewrote, most of the identification functions from scratch and I remember I included all the models. The one for the skin might be bugged and it's waiting for a revision. But other than that, they can all be found in the Misc/Identifiers.cpp on the repository.
Title: Re: Squirrel plugin small bug / player.IP return 0.0.0.0
Post by: DizzasTeR on April 19th, 2015, 04:09 AM
Players also reported me about the comet not spawning, but not sure about the rest of the vehicles, I remember typing the ID of these car works but typing the name doesn't recognize it.
Title: Re: Squirrel plugin small bug / player.IP return 0.0.0.0
Post by: rww on April 19th, 2015, 11:34 AM
Quote from stormeus on April 19th, 2015, 01:07 AM
For bookkeeping purposes, please don't report two bugs in one thread. It makes tracking individual issues harder to deal with.

Some of those cars should already be tracked by Squirrel. Some of those cars don't even exist in VC (FBI Car is III; only the Cuban Jetmax exists in VC, what is Jetmax?). The rest will be handled accordingly.

Does the 0.0.0.0 issue occur always, often or rarely?
(http://i58.tinypic.com/spzn6o.png)

After update missing too:
- Fbi Car
- FBI Rancher
- Pony
Title: Re: Squirrel plugin small bug / player.IP return 0.0.0.0
Post by: Gudio on April 19th, 2015, 02:13 PM
To reproduce this issue, you can kick the player in onPlayerJoin callback.
Title: Re: Squirrel plugin small bug / player.IP return 0.0.0.0
Post by: Stormeus on April 19th, 2015, 02:17 PM
What is FBI Car?
Title: Re: Squirrel plugin small bug / player.IP return 0.0.0.0
Post by: Gudio on April 19th, 2015, 02:50 PM
Quote from rwwpl on April 19th, 2015, 11:34 AM
- Fbi Car
- FBI Rancher
You need to type at least 4 characters. For example: fbi w or fbi r.
Pony was fixed in SVN.
Title: Re: Squirrel plugin small bug / player.IP return 0.0.0.0
Post by: rObInX on April 20th, 2015, 02:22 AM
He talking about FBI Cheeta.
Title: Re: Squirrel plugin small bug / player.IP return 0.0.0.0
Post by: Kratos_ on April 20th, 2015, 05:24 AM
Maybe FBI Washington .
Title: Re: Squirrel plugin small bug / player.IP return 0.0.0.0
Post by: rww on April 21st, 2015, 08:03 AM
Quote from rObInX on April 20th, 2015, 02:22 AM
He talking about FBI Cheeta.
No, FBI Wash, but game files is FBI Car. FBI Cheeta is Vice Cheetah.