PoLlama Forums  

Go Back   PoLlama Forums > WarCraft > World Editor Help

Reply
 
LinkBack Thread Tools
Old 03-29-2008   #1
 
Join Date: Mar 2008
Posts: 33
warcrafttt is on a distinguished road
any way to make map less laggy?

hello

my map lags after playing it for a while

any chance to fix that?
warcrafttt is offline   Reply With Quote
Old 03-29-2008   #2
 
MrOrange's Avatar
 
Join Date: Dec 2006
Posts: 2,992
MrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond repute
Re: any way to make map less laggy?

The main thing would be to remove memory leaks. If your map becomes laggy over time then it is probably memory leaks.

Do you use custom scripts on your map like RemoveLocation(udg_Point) or DestroyGroup(udg_UnitGroup)?
MrOrange is offline   Reply With Quote
Old 03-29-2008   #3
 
Join Date: Mar 2008
Posts: 33
warcrafttt is on a distinguished road
Re: any way to make map less laggy?

nope i dont

i dont know how to either :O
warcrafttt is offline   Reply With Quote
Old 03-29-2008   #4
 
MrOrange's Avatar
 
Join Date: Dec 2006
Posts: 2,992
MrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond repute
Re: any way to make map less laggy?

Well you can always google for a formal tutorial but it's pretty much there are some left-over data after you use triggers. And they add up over time. What you do is you make variables and use those variables. And then get rid of them after the trigger ended. So instead of
Code:
Create Unit at Point
You would have
Code:
Set Point_Variable=Point
Create Unit at Point_Variable
RemoveLocation(udg_Point_Variable)
For Point Variables you use RemoveLocation(udg_NAME_OF_POINT_VARIABLE)
For Region Variable you use DestroyRect(udg_NAME_OF_REGION_VARIABLE)
For Unit Group Variable you use DestoryGroup(udg_GROUP_VARIABLE)
For PlayerGroup you use DestroyForce(udg_FORCE_VARIABLE)

Unfortunately it's very hard to tell someone in just one post. It's something where you have to read tutorials on it and then experience it yourself.
MrOrange is offline   Reply With Quote
Old 04-01-2008   #5
 
Join Date: Mar 2008
Location: Bay Area
Posts: 18
Chocobuncle is on a distinguished road
Re: any way to make map less laggy?

how could the memory leek from it, cause i was thinking about making a game with panther and some other map makers but do the starting stuff myself first
Chocobuncle is offline   Reply With Quote
Old 04-01-2008   #6
 
MrOrange's Avatar
 
Join Date: Dec 2006
Posts: 2,992
MrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond repute
Re: any way to make map less laggy?

First, panther's skill is not very impressive, even to people who are new to the World Editor. And he is also very controlling. He would never let you run the shots. He would make you think you were but in the end, the map would probably be his own map with your name on the side.

Second, memory leak is a misleading name. A better name would be "Left over data that builds over time"
MrOrange is offline   Reply With Quote
Old 04-01-2008   #7
 
Join Date: Mar 2008
Location: Bay Area
Posts: 18
Chocobuncle is on a distinguished road
Re: any way to make map less laggy?

well who is good at map making then and how does it build up over time
Chocobuncle is offline   Reply With Quote
Old 04-01-2008   #8
 
MrOrange's Avatar
 
Join Date: Dec 2006
Posts: 2,992
MrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond repute
Re: any way to make map less laggy?

Anyone else who knows that when you install Warcraft III, the World Editor comes with it, a moron, a monkey, etc.

It builds up from triggers. You may think variables are just a waste of time at this point or you might now even know what they are. Variables stores data that you can use in a map. But the point of variables are more then just that. Every time a trigger is activated. If you don't get rid of the left over data. They will pile up.
MrOrange is offline   Reply With Quote
Old 04-01-2008   #9
 
Join Date: Mar 2008
Location: Bay Area
Posts: 18
Chocobuncle is on a distinguished road
Re: any way to make map less laggy?

and how could you get rid of the pile up
Chocobuncle is offline   Reply With Quote
Old 04-01-2008   #10
 
MrOrange's Avatar
 
Join Date: Dec 2006
Posts: 2,992
MrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond repute
Re: any way to make map less laggy?

During trigger functions. Use variables that stored the data and then after the trigger served its purpose. Delete the data on the variables. This prevents them from gathering.

You delete them by using custom scripts like the ones I wrote a few posts above.
MrOrange is offline   Reply With Quote
Old 04-01-2008   #11
 
Join Date: Mar 2008
Location: Bay Area
Posts: 18
Chocobuncle is on a distinguished road
Re: any way to make map less laggy?

o i see, thanks

but who else thats good at making maps can i talk with
Chocobuncle is offline   Reply With Quote
Old 04-02-2008   #12
 
King_Leopold's Avatar
 
Join Date: Apr 2007
Posts: 2,436
King_Leopold is a jewel in the roughKing_Leopold is a jewel in the roughKing_Leopold is a jewel in the rough
Re: any way to make map less laggy?

if you want to work on mapping, open editor and start messing around with it...sadly there really isn't any quick way learn,

once you have specific questions, post them in the forum

Go to this link, now. [Only registered and activated users can see links. ]
King_Leopold is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Tutorial] King's General Guide to (spawn-based) Map-Making. King_Leopold Submit a Tutorial [World Editor] 4 08-10-2008 01:14 AM
Triggering
Triggering
How do i make realistic iventory in my map ?
CRAZY-PENGUIN World Editor Help 3 05-27-2008 02:01 PM
General General Companion Map, Arena,...!?! glassoctopus Submissions Board 14 02-03-2008 12:18 AM
Becoming a Friendly Mapper (Polish and Organization) MrApples Tutorials 7 08-10-2007 05:31 PM
[Tutorial] Map Protection/Optimization tylord Submit a Tutorial [World Editor] 6 06-13-2007 09:24 PM


All times are GMT -5. The time now is 08:46 PM.

A friend of Wc3Happy
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165