SA-MP Forums Archive
[Plugin] Streamer Plugin v2.7.2 with vehicle streamer - 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: Plugin Development (https://sampforum.blast.hk/forumdisplay.php?fid=18)
+--- Thread: [Plugin] Streamer Plugin v2.7.2 with vehicle streamer (/showthread.php?tid=529389)

Pages: 1 2 3 4


Re: Streamer Plugin v2.7.2 with vehicle streamer - CoaPsyFactor - 03.08.2014

I have problem spawning vehicles.
I've made loading from mysql db and printing results looks fine, and Dynamic ID looks fine but there is no vehicle visible.

Код:
vStats[i][vDynamicId] = CreateDynamicVehicle(vStats[i][vModel],  vStats[i][vX], vStats[i][vY], vStats[i][vZ], vStats[i][vRotation], vStats[i][vColor1], vStats[i][vColor2], -1, 50.0);

printf("%d %d %f %f %f %f %d %d %d %f", vStats[i][vDynamicId], vStats[i][vModel],  vStats[i][vX], vStats[i][vY], vStats[i][vZ], vStats[i][vRotation], vStats[i][vColor1], vStats[i][vColor2], -1, 50.0);
Console output:
Код:
[19:38:30] 1 411 1746.819946 -1949.020019 14.117199 180.000000 4 2 -1 50.000000
[19:38:30] 2 400 1746.819946 -1949.020019 14.117199 180.000000 1 1 -1 50.000000



Re: Streamer Plugin v2.7.2 with vehicle streamer - Swimor - 03.08.2014

Quote:
Originally Posted by d711728
Посмотреть сообщение
It will tell you that successful, nothing happens!

Does not create objects!

Console prints, loading successfully ЧЧЧname versionЧЧЧЧ.
However, the server.log into've only writes that "load successful".

I have the same problem that the vehicle is not visible.


Код:
CMD:veh(playerid,params[])
{
	new Float:POS[3];
	//CreateDynamicVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay = 60, Float:streamdistance = 100.0);
	GetPlayerPos(playerid,POS[0],POS[1],POS[2]);
	new asd = CreateDynamicVehicle(411,POS[0],POS[1],POS[2],0.0,-1,-1,6000,300.0);
	if(IsValidDynamicVehicle (asd)) return SendClientMessage(playerid,-1,"-> successful!");
	SetDynamicVehicleVirtualWorld(asd, 0);
	SetDynamicVehicleInterior(asd, 0);
	PutPlayerInDynamicVehicle(playerid, asd, 0);
	return 1;
}
Quote:
Originally Posted by CoaPsyFactor
Посмотреть сообщение
I have problem spawning vehicles.
I've made loading from mysql db and printing results looks fine, and Dynamic ID looks fine but there is no vehicle visible.

Код:
vStats[i][vDynamicId] = CreateDynamicVehicle(vStats[i][vModel],  vStats[i][vX], vStats[i][vY], vStats[i][vZ], vStats[i][vRotation], vStats[i][vColor1], vStats[i][vColor2], -1, 50.0);

printf("%d %d %f %f %f %f %d %d %d %f", vStats[i][vDynamicId], vStats[i][vModel],  vStats[i][vX], vStats[i][vY], vStats[i][vZ], vStats[i][vRotation], vStats[i][vColor1], vStats[i][vColor2], -1, 50.0);
Console output:
Код:
[19:38:30] 1 411 1746.819946 -1949.020019 14.117199 180.000000 4 2 -1 50.000000
[19:38:30] 2 400 1746.819946 -1949.020019 14.117199 180.000000 1 1 -1 50.000000
It seems that for some reason the vehicles not streamed correctly, I need to check it.


Re: Streamer Plugin v2.7.2 with vehicle streamer - Kar - 03.08.2014

Why don't you make this as a streamer add-on instead of being a full force Incognito streamer. What about when Incognito updates his streamer, you'll have to always follow and always be one step behind. Can't this just use his techniques and stuff as an add-on so players can use both plugins? Or will that cause issues?


Re: Streamer Plugin v2.7.2 with vehicle streamer - Swimor - 03.08.2014

Quote:
Originally Posted by Kar
Посмотреть сообщение
Why don't you make this as a streamer add-on instead of being a full force Incognito streamer. What about when Incognito updates his streamer, you'll have to always follow and always be one step behind. Can't this just use his techniques and stuff as an add-on so players can use both plugins? Or will that cause issues?
That will cause issues but I trying now to do something about this.


Re: Streamer Plugin v2.7.2 with vehicle streamer - CoaPsyFactor - 03.08.2014

Quote:
Originally Posted by Swimor
Посмотреть сообщение
It seems that for some reason the vehicles not streamed correctly, I need to check it.
I've realized that because it returned correct IDs 1 and 2


Re: Streamer Plugin v2.7.2 with vehicle streamer - kurta999 - 04.08.2014

I would suggest you to change the shortering stile.

SetDynVehicleAngularVelocity -> SetDynamicVehAngularVelocity
SetDynVehicleDamageStatus -> SetDynamicVehDamageStatus

OnDynamicVehDamageStatusUpdate
(max len is 31 character)

Why? Because this already used in samp.

https://sampwiki.blast.hk/wiki/PlayerTex...tPreviewVehCol c


Re: Streamer Plugin v2.7.2 with vehicle streamer - Swimor - 04.08.2014

Quote:
Originally Posted by CoaPsyFactor
Посмотреть сообщение
I've realized that because it returned correct IDs 1 and 2
There no problem with the IDs that returned.

Quote:
Originally Posted by kurta999
Посмотреть сообщение
I would suggest you to change the shortering stile.

SetDynVehicleAngularVelocity -> SetDynamicVehAngularVelocity
SetDynVehicleDamageStatus -> SetDynamicVehDamageStatus

OnDynamicVehDamageStatusUpdate
(max len is 31 character)

Why? Because this already used in samp.

https://sampwiki.blast.hk/wiki/PlayerTex...tPreviewVehCol c
Fixed.


Re: Streamer Plugin v2.7.2 with vehicle streamer - iFarbod - 04.08.2014

Pull a Request at main Streamer GitHub repo. ask Incognito to integrate this.


Re: Streamer Plugin v2.7.2 with vehicle streamer - Swimor - 04.08.2014

Quote:
Originally Posted by iFarbod
Посмотреть сообщение
Pull a Request at main Streamer GitHub repo. ask Incognito to integrate this.
When I will finish, I will do it.


Re: Streamer Plugin v2.7.2 with vehicle streamer - d711728 - 04.08.2014

When the error is corrected?


Re: Streamer Plugin v2.7.2 with vehicle streamer - Swimor - 04.08.2014

Quote:
Originally Posted by d711728
Посмотреть сообщение
When the error is corrected?
I am currently working on this, It can take few hours....


Re: Streamer Plugin v2.7.2 with vehicle streamer - d711728 - 04.08.2014

Quote:
Originally Posted by Swimor
Посмотреть сообщение
I am currently working on this, It can take few hours....
All right, thank you!


Respuesta: Streamer Plugin v2.7.2 with vehicle streamer - The-Krew - 05.08.2014

there is a limit for the vehicles?


Re: Respuesta: Streamer Plugin v2.7.2 with vehicle streamer - kadaradam - 05.08.2014

Quote:
Originally Posted by The-Krew
Посмотреть сообщение
there is a limit for the vehicles?
Quote:

Default maximum items: none (unlimited)

Reading is magic, son.


Re: Streamer Plugin v2.7.2 with vehicle streamer - Swimor - 05.08.2014

I found the problem that caused the objects and vehicles to not stream.
Beta 5:
* Delete LinkTimeOptimization
Download: https://github.com/zilberman-rafael/...s/tag/v2.7.2.5


Re: Streamer Plugin v2.7.2 with vehicle streamer - d711728 - 05.08.2014

Quote:
Originally Posted by Swimor
Посмотреть сообщение
I found the problem that caused the objects and vehicles to not stream.
Beta 5:
* Delete LinkTimeOptimization
Download: https://github.com/zilberman-rafael/...s/tag/v2.7.2.5
Код:
CMD:veh(playerid,params[])
{
	new Float:POS[3];
	//CreateDynamicVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay = 60, Float:streamdistance = 100.0);
	GetPlayerPos(playerid,POS[0],POS[1],POS[2]);
	new asd = CreateDynamicVehicle(411,POS[0],POS[1],POS[2],0.0,0,0,6000,300.0);
	if(!IsValidDynamicVehicle (asd)) return SendClientMessage(playerid,-1,"->ERROR");//"-> successful!");
	SetDynamicVehicleVirtualWorld(asd, 0);
	SetDynamicVehicleInterior(asd, 0);
	PutPlayerInDynamicVehicle(playerid, asd, 0);
	return 1;
}
Why throw out of the car if:

Puts his car.

But do not put the player in your car.

Ejected from the vehicle after a certain distance.


Re: Streamer Plugin v2.7.2 with vehicle streamer - AiRaLoKa - 05.08.2014

i will only wait for the final version without bug and cross compatible :3

feel like it's no use if it have no linux version


Re: Streamer Plugin v2.7.2 with vehicle streamer - Swimor - 05.08.2014

Quote:
Originally Posted by d711728
Посмотреть сообщение
Код:
CMD:veh(playerid,params[])
{
	new Float:POS[3];
	//CreateDynamicVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay = 60, Float:streamdistance = 100.0);
	GetPlayerPos(playerid,POS[0],POS[1],POS[2]);
	new asd = CreateDynamicVehicle(411,POS[0],POS[1],POS[2],0.0,0,0,6000,300.0);
	if(!IsValidDynamicVehicle (asd)) return SendClientMessage(playerid,-1,"->ERROR");//"-> successful!");
	SetDynamicVehicleVirtualWorld(asd, 0);
	SetDynamicVehicleInterior(asd, 0);
	PutPlayerInDynamicVehicle(playerid, asd, 0);
	return 1;
}
Why throw out of the car if:

Puts his car.

But do not put the player in your car.

Ejected from the vehicle after a certain distance.
Sorry, I cannot understand what is the problem, can you please try to explain better or give an video or something...

Edit:
Vehicles can disappear when you moving from one cell to another, the only way to fix this is to use global cell that will contain the vehicles.
It will be fixed soon.


Re: Streamer Plugin v2.7.2 with vehicle streamer - Incognito - 05.08.2014

Quote:
Originally Posted by Swimor
Посмотреть сообщение
Sorry, I cannot understand what is the problem, can you please try to explain better or give an video or something...

Edit:
Vehicles can disappear when you moving from one cell to another, the only way to fix this is to use global cell that will contain the vehicles.
It will be fixed soon.
You'll have to treat vehicles the same as moving objects (i.e., they should change cells as needed). Look at Streamer::processMovingObjects to see how this is done.

If you ever want to merge your changes in the future, just ask me, and I'll create a separate branch where you can send a pull request.


Re: Streamer Plugin v2.7.2 with vehicle streamer - CoaPsyFactor - 05.08.2014

Quote:
Originally Posted by Swimor
Посмотреть сообщение
I found the problem that caused the objects and vehicles to not stream.
Beta 5:
* Delete LinkTimeOptimization
Download: https://github.com/zilberman-rafael/...s/tag/v2.7.2.5
Now it only streams last loaded vehicle