Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Ksna on Aug 01, 2015, 06:07 PM

Title: Big objects won't sync?
Post by: Ksna on Aug 01, 2015, 06:07 PM
 i made a rectangle object 5000 length and 5000 width and 5 height to make a completely new map on top of the original map;D everything works and when i run on that then suddenly it disappears  :o

that rectangle object size is 50kb so i want to use big object instead of loop a small object

https://www.youtube.com/watch?v=JUK08aZaQkI&feature=youtu.be
Title: Re: Big objects won't sync?
Post by: Ksna on Aug 02, 2015, 01:50 AM
video uploaded
Title: Re: Big objects won't sync?
Post by: DeViL_JiN on Aug 02, 2015, 04:47 AM
you have to use high or big textures for it, what's the texture image size?
Title: Re: Big objects won't sync?
Post by: Ksna on Aug 02, 2015, 04:58 AM
256 x 256 as you said in that tutorial

this is my file http://www.filedropper.com/testunp
Title: Re: Big objects won't sync?
Post by: DeViL_JiN on Aug 02, 2015, 05:17 AM
Quote from: Ksna on Aug 02, 2015, 04:58 AM256 x 256 as you said in that tutorial

this is my file http://www.filedropper.com/testunp
256x256 will only work with small objects, imagine you have created an object which is covering whole vice city map and the texture is 256.
You need to use high texture for it because 256 will probably stretch and will disappear.
Or another suggestion, create 50mx50m object and then place it using map editer it'll save some creepy things
Title: Re: Big objects won't sync?
Post by: Ksna on Aug 02, 2015, 05:24 AM
thanks Jin , i will loop a 50m object
Title: Re: Big objects won't sync?
Post by: Ksna on Aug 02, 2015, 07:58 AM
I made a loop for 50 x 50 x 5 dimensions box such that it will appear all over vcmp

 x < 2000.0, x > -2100.0, y < 1900.0, y > -1900.0

but this time some objects are randomly disapearing and i'm not falling down like before.
Title: Re: Big objects won't sync?
Post by: DeViL_JiN on Aug 02, 2015, 09:16 AM
Let's solve this issue on pm.
Title: Re: Big objects won't sync?
Post by: Thijn on Aug 02, 2015, 10:33 AM
Quote from: DeViL_JiN on Aug 02, 2015, 09:16 AMLet's solve this issue on pm.
Why would you do that? Isn't this something other people might wanna know as well?
Title: Re: Big objects won't sync?
Post by: DeViL_JiN on Aug 02, 2015, 11:50 AM
Quote from: Thijn on Aug 02, 2015, 10:33 AM
Quote from: DeViL_JiN on Aug 02, 2015, 09:16 AMLet's solve this issue on pm.
Why would you do that? Isn't this something other people might wanna know as well?
Okay then sure.
Ksna can you post a screen shot of the problem?
Mind uploading the files? So I can test?
@Thijn
I don't want someone to read 100 pages of a single topic, so we can simply solve it in pm to reduce the topic length and then post the solution here, who likes to read a lot of crap?
Title: Re: Big objects won't sync?
Post by: maxorator on Aug 02, 2015, 12:05 PM
Use XML for huge objects. The objects you create with CreateObject are streamed in and out by the server, which means if you go too far from the center of it, it will be removed for you.
Title: Re: Big objects won't sync?
Post by: Sebastian on Aug 02, 2015, 06:56 PM
Quote from: maxorator on Aug 02, 2015, 12:05 PMif you go too far from the center of it

Saying this not to try look superior (like you kids may want to interpret), but to help:
The streaming distance for objects created via CreateObject is 300 game units.
Title: Re: Big objects won't sync?
Post by: Ksna on Aug 03, 2015, 02:46 AM
OFF  :Sorry for late reply , i booted with windows 10 now i'm playing with many errors really very annoying( lost vicecity which i used before) and now i cannot take screenshots .

@maxorator @sebby I have removed that huge object and tried using loop to make almost 200 objects each of (50 x 50 x 5) but now objects disappeared randomly does that mean same problem with smallobjects
I will use XML*
int a, b;
for( a = -2000, a<= 2000, a+50){
for (b = -1900, b <= 1900, b+50)
CreateObject (6002 , 0, Vector(a,b,240));
}

When i made loop some times it  is not working , is there a limit for objects?
Title: Re: Big objects won't sync?
Post by: Thijn on Aug 03, 2015, 09:09 AM
Yes there is a limit of 3000 objects. Like you said though, use XML for static objects.
Title: Re: Big objects won't sync?
Post by: Sebastian on Aug 03, 2015, 08:58 PM
From what I remember, @Stormeus once said that objects created via .xml files are not counting for the limit.
Objects only created via CreateObject have that limit.
Title: Re: Big objects won't sync?
Post by: Stormeus on Aug 04, 2015, 02:30 AM
Quote from: sseebbyy on Aug 03, 2015, 08:58 PMFrom what I remember, @Stormeus once said that objects created via .xml files are not counting for the limit.
Objects only created via CreateObject have that limit.

This is correct.