Vice City: Multiplayer

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

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

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

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

Another bug:

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

(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi57.tinypic.com%2F258yphc.png&hash=b174a778fb4108633847817a10bc06c2ed592e2e)
Title: Re: Squirrel plugin small bug / player.IP return 0.0.0.0
Post by: . on Apr 18, 2015, 11:53 PM
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 Apr 19, 2015, 12:02 AM
Quote from: S.L.C on Apr 18, 2015, 11:53 PMAre 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

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 Apr 19, 2015, 12: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 Apr 19, 2015, 12: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 Apr 19, 2015, 03: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 Apr 19, 2015, 10:34 AM
Quote from: stormeus on Apr 19, 2015, 12:07 AMFor 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?

(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi58.tinypic.com%2Fspzn6o.png&hash=c8a7c2600f6c3fb0bf793fee4942035323f1ae14)

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 Apr 19, 2015, 01: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 Apr 19, 2015, 01:17 PM
What is FBI Car?
Title: Re: Squirrel plugin small bug / player.IP return 0.0.0.0
Post by: Gudio on Apr 19, 2015, 01:50 PM
Quote from: rwwpl on Apr 19, 2015, 10: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 Apr 20, 2015, 01:22 AM
He talking about FBI Cheeta.
Title: Re: Squirrel plugin small bug / player.IP return 0.0.0.0
Post by: Kratos_ on Apr 20, 2015, 04:24 AM
Maybe FBI Washington .
Title: Re: Squirrel plugin small bug / player.IP return 0.0.0.0
Post by: rww on Apr 21, 2015, 07:03 AM
Quote from: rObInX on Apr 20, 2015, 01:22 AMHe talking about FBI Cheeta.

No, FBI Wash, but game files is FBI Car. FBI Cheeta is Vice Cheetah.