Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Pawn Scripting [Pawn] Streamer question

 
  • 0 Vote(s) - 0 Average
Pawn Streamer question
omcho
Offline

Burgershot Member
Posts: 2
Threads: 1
Joined: Aug 2019
Reputation: 0
#1
2019-11-10, 06:04 PM
Let's start from 0

(note that when i say create i mean streamer code)

I have a house system and a house map that is let's say over the LSPD, and my LSPD and house map are created in -1 virutalworld so it's streamed in all VW's and let's say those maps have 22.2k objects together
so over 2k objects won't be streamed in

So my server owned wanted to do the next thing:

Change LSPD to Virutalworld 0

Create every house map in a seperate virutal world (starting from 1 to let's say 1000), that would create an  insane amount of objects but I don't know if that is a problem or not since the Streamer destroy's them when none's near them

So then my LSPD map would have 12k objects( in VW 0 ) and all would be streamed in, and when a player enters his house i set his virutal world to his house id (1000 here) and then he wouldn't be able to see the LSPD map and my house map would be streamed with the remaining objects

But my main question is would that create insane lag or would that be a good idea?
Bear in mind i can't use a single VW for all the houses since all player's would be set in one VW (not a good idea, since players would see other players houses)
Pinch
Offline

Burgershot Member
Posts: 391
Threads: 19
Joined: Apr 2019
Reputation: 22
Location: Belgrade, Serbia
#2
2019-11-10, 06:08 PM
You have LSPD map, set its interior ID to 0 (not -1)

You have global map for house, change it's vw to 10 for example (not -1, you don't need it in vw 0 because it's default and that's where all zara Gaming's players are)

Now when player enters House:

SetPlayerInterior(playerid, house_id);
( I assume it's AI so its starting value is 1 and no need for +1 like I mentioned before, my baddy forgive me daddy ) 

What we have done now?
Player's vw is same as LSPD map's but interior ids are different so lspd map won't be steamed (because that's how streamer works) 

On player exit house map

SetPlayerInterior(playerid, 0);
Now house map's interior is same as player id's but virtual world isn't so it won't be streamed.
Using Pawn.CMD?
If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
omcho
Offline

Burgershot Member
Posts: 2
Threads: 1
Joined: Aug 2019
Reputation: 0
#3
2019-11-10, 06:15 PM
(2019-11-10, 06:08 PM)Pinch Wrote: You have LSPD map, set its interior ID to 0 (not -1)

You have global map for house, change it's vw to 10 for example (not -1, you don't need it in vw 0 because it's default and that's where all zara Gaming's players are)

Now when player enters House:

SetPlayerInterior(playerid, house_id);
( I assume it's AI so its starting value is 1 and no need for +1 like I mentioned before, my baddy forgive me daddy ) 

What we have done now?
Player's vw is same as LSPD map's but interior ids are different so lspd map won't be steamed (because that's how streamer works) 

On player exit house map

SetPlayerInterior(playerid, 0);
Now house map's interior is same as player id's but virtual world isn't so it won't be streamed.

I was also thinking of this and also asking them to re-do all the maps and just create the "global ones" in VW = 0 and the ones where the player's get teleported in 1/2 depends on the usage, thanks for your reply I would like to hear other opinions :)
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode