[Plugin] Streamer Plugin v2.7.2 with vehicle streamer
#41

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
Reply
#42

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.
Reply
#43

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?
Reply
#44

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.
Reply
#45

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
Reply
#46

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
Reply
#47

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.
Reply
#48

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

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.
Reply
#50

When the error is corrected?
Reply
#51

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

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

there is a limit for the vehicles?
Reply
#54

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

Default maximum items: none (unlimited)

Reading is magic, son.
Reply
#55

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
Reply
#56

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.
Reply
#57

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
Reply
#58

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.
Reply
#59

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.
Reply
#60

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)