No idea Whats going on. -
SpikY_ - 28.07.2016
Hello folks, I have no idea whats going on with my Maps. I have two files of Map. So basically, When i upload my 2nd map file, Some Objects of previous map file getting disappeared, I don't know whats the problem. Both files use Streamer plugin tho'.
Re: No idea Whats going on. -
Pearson - 28.07.2016
Use CreateDynamicObjectEx
Re: No idea Whats going on. -
SpikY_ - 28.07.2016
Okay, But Anyone knows, How to convert these map codes into Dynamic?
Код:
new g_Object[288];
g_Object[0] = CreateObject(1649, 1443.7491, -1021.7053, 26.9577, 0.0000, 0.0000, 0.0000); //wglasssmash
g_Object[1] = CreateObject(1502, 1441.5561, -1021.6953, 22.9030, 0.0000, 0.0000, 0.0000); //Gen_doorINT04
There are about 288 Coordinates like this. I can't convert them manually.
EDIT: I also tried CovertFFS and Delux map converter, But they ain't showing results.
Re: No idea Whats going on. -
SyS - 28.07.2016
http://convertffs.com/ here you can convert all the code to dynamic or in other streamer versions.
Re: No idea Whats going on. -
SpikY_ - 28.07.2016
I also tried CovertFFS and Delux map converter, But they ain't showing results
-EDIT: My maps are textured completely, So when i paste my codes, Sometimes it shows the result by removing all textures.
Код:
g_Object[12] = CreateObject(19378, 1461.8853, -1021.6735, 25.7712, 0.0000, 0.0000, -89.9999); //wall026
SetObjectMaterial(g_Object[12], 0, 2567, "ab", "chipboard_256", 0xFFFFFFFF);
Re: No idea Whats going on. -
Konstantinos - 28.07.2016
If those two maps are close, the client can stream only 1000 objects at a time and there's nothing you can do about it.
As for the code, just CTRL + H and replace "CreateObject" with "CreateDynamicObject". The first 7 parameters are the same and the rest have default values.
Re: No idea Whats going on. -
SpikY_ - 28.07.2016
Quote:
Originally Posted by Konstantinos
If those two maps are close, the client can stream only 1000 objects at a time and there's nothing you can do about it.
As for the code, just CTRL + H and replace "CreateObject" with "CreateDynamicObject". The first 7 parameters are the same and the rest have default values.
|
So Actually Map objects loaded without any problem but
SetObjectMaterial didn't load when i coverted CreateObject to CreateDynamicObject.
Код:
g_Object[282] = CreateDynamicObject(19441, 1079.0937, -1400.6486, 14.3438, -0.9999, 90.1999, 0.0000); //wall081
SetObjectMaterial(g_Object[282], 0, 1717, "cj_tv", "green_glass_64", 0xFFFFFFFF);
Re: No idea Whats going on. -
Konstantinos - 28.07.2016
SetObjectMaterial becomes SetDynamicObjectMaterial. Their parameters are the same.
Re: No idea Whats going on. -
SpikY_ - 28.07.2016
My bad, All good now. Thanks.