Map Construction Assistance
#1

Hi,

I added like objects to make a car park opposite the San Fierro PD, and it was fine, but I recently took out the trees and added two speed bumps and some rocks, grass, and like pile of stones around, and when it hits the login part, the game just crashes, plus, how is so little objects added equal to like 2 thousand lines of code?
Reply
#2

You might have added an invalid object ID.

And, each object basically has its own line of code.
Reply
#3

Hi,

That's what I thought too..

but I didnt add much, in total, like 20-25, but I dont know why I have 2000 lines of "createobject blah blah blah" for, its annoying just copying it all :P

How can I see if invalid ID is the case?

plus, look @ this, part of it:

CreateObject(987, -2862.21582, 510.14410, 4.61520, 0.00000, 0.00000, 0.00000);
CreateObject(987, -2874.18652, 510.14355, 4.64131, 0.00000, 0.00000, 0.00000);
CreateObject(987, -2886.09619, 510.14410, 4.62788, 0.00000, 0.00000, 0.00000);
CreateObject(987, -2898.08960, 510.14410, 4.63081, 0.00000, 0.00000, 0.00000);
CreateObject(987, -2910.02539, 510.14410, 4.63386, 0.00000, 0.00000, 0.00000);
CreateObject(987, -2930.90479, 510.14410, 4.63271, 0.00000, 0.00000, 0.00000);
CreateObject(987, -2922.00781, 510.14355, 4.63637, 0.00000, 0.00000, 0.00000);
CreateObject(987, -2931.23096, 498.26297, 4.40160, 0.00000, 0.00000, 90.00000);
CreateObject(987, -2931.19336, 486.93936, 4.42470, 0.00000, 0.00000, 90.00000);
CreateObject(987, -2942.82178, 486.82776, 4.52318, 0.00000, 0.00000, 0.00000);
CreateObject(987, -2964.24341, 486.81708, 4.05708, 0.00000, 0.00000, 0.00000);
CreateObject(987, -2973.12524, 486.73749, 4.13148, 0.00000, 0.00000, 0.00000);
CreateObject(987, -2990.94263, 486.74686, 4.05715, 0.00000, 0.00000, 0.00000);
CreateObject(987, -2996.83398, 486.60483, 4.05469, 0.00000, 0.00000, 0.00000);
CreateObject(987, -2996.80762, 474.60504, 4.05424, 0.00000, 0.00000, 90.00000);
CreateObject(987, -2996.81641, 462.60690, 4.05713, 0.00000, 0.00000, 90.00000);
CreateObject(987, -2996.80591, 455.02170, 4.05469, 0.00000, 0.00000, 90.00000);
CreateObject(987, -2948.65161, 454.79892, 4.16557, 0.00000, 0.00000, 0.00000);
CreateObject(987, -2996.66113, 455.06055, 4.19325, 0.00000, 0.00000, 0.00000);
CreateObject(987, -2984.64160, 454.79883, 4.15820, 0.00000, 0.00000, 0.00000);
CreateObject(987, -2972.65918, 454.79883, 4.13663, 0.00000, 0.00000, 0.00000);
CreateObject(987, -2960.63770, 454.79883, 4.16966, 0.00000, 0.00000, 0.00000);
CreateObject(987, -2942.54419, 455.01196, 4.81501, 0.00000, 0.00000, 0.00000);
CreateObject(987, -2931.11401, 443.28473, 4.05469, 0.00000, 0.00000, 90.00000);
CreateObject(987, -2930.06519, 431.54514, 4.05469, 0.00000, 0.00000, 95.00000);
CreateObject(987, -2927.46265, 416.98044, 4.05701, 0.00000, 0.00000, 99.49997);
CreateObject(987, -2927.95996, 419.79199, 4.05469, 0.00000, 0.00000, 99.99756);
CreateObject(987, -2879.46655, 416.99609, 4.05701, 0.00000, 0.00000, 0.00000);
CreateObject(987, -2927.40723, 417.13477, 4.05701, 0.00000, 0.00000, 0.00000);
CreateObject(987, -2915.43750, 417.11621, 4.05701, 0.00000, 0.00000, 0.00000);
CreateObject(987, -2903.42383, 417.04590, 4.05701, 0.00000, 0.00000, 0.00000);
CreateObject(987, -2891.43750, 417.02344, 4.05701, 0.00000, 0.00000, 0.00000);
CreateObject(987, -2875.32324, 416.88809, 4.05701, 0.00000, 0.00000, 0.00000);
CreateObject(987, -2863.76270, 417.01413, 3.93121, 0.00000, 0.00000, 90.00000);

I dont know what this is, but I haven't even added this many items in total, yet, this is like 1% of the entire code, it doesnt just show one item, shows like this many for every item, which I dont understand..

note - It cant be invalid ID, when I first started, the code was like 30-50 lines long, now I added a couple new items and everything it says its like 2000 lines, something has to be wrong
Reply
#4

anyone know? I really wanna add objects, but this is stopping me
Reply
#5

So.. One of the objects that you created got copied lots of time? If that's the case, just try putting per one of those copied one in the gamemode + make sure that if you have RemoveBuildingForPlayer is OnPlayerConnect...
Reply
#6

But it cant be, can it? As it shows different coords for each one, and its not always like that, some only had one, where others vary from 1 - 20ish
Reply
#7

They're basically the same coordinates, just slightly varied. If I'm not mistaken, copying the same object a bunch of times in MTA will make them move slightly.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)