Cohadar
master of fugue
- Reaction score
- 209
i already have new gen but i dunno what to do in there and how to use it
Double click the we.bat file.....
EDIT:
Just looked at N-a-z-g-u-l's system, it is a shitty subversion of ABC loooooooooooool.
i already have new gen but i dunno what to do in there and how to use it
id say start with CSData, and if you ever have problems, move to ABC or HSAS, since its "Safer", for all the dumb asses out there
Just looked at N-a-z-g-u-l's system, it is a shitty subversion of ABC loooooooooooool.
globals
timer array udg_TBI
timer array udg_TBIStack
integer udg_TBIStackN
endglobals
function H2I takes handle h returns integer
return h
return 0
endfunction
function CreateTimerById takes nothing returns integer
local integer i
local integer c
if udg_TBIStackN==0 then
set udg_TBIStack[0]=CreateTimer()
else
set udg_TBIStackN=udg_TBIStackN-1
endif
set i=H2I(udg_TimersUnused[udg_TBIStackN])
set c=i-(i/8192)*8192
set i=c
loop
if udg_TBI<i>==null then
set udg_TBI<i>=udg_TimersUnused[udg_TBIStackN]
return i
endif
set i=i+1
exitwhen i==8192
endloop
set i=0
loop
exitwhen i==c
if udg_TBI<i>==null then
set udg_TBI<i>=udg_TimersUnused[udg_TBIStackN]
return i
endif
set i=i+1
endloop
call BJDebugMsg("|cffff0000TBI: No free timer slot!|r")
return -1
endfunction
function GetExpiredTimerById takes nothing returns integer
local timer t=GetExpiredTimer()
local integer i=H2I(t)
local integer c=i-(i/8192)*8192
set i=c
loop
if udg_TBI<i>==t then
return i
endif
set i=i+1
exitwhen i==8192
endloop
set i=0
loop
exitwhen i==c
if udg_TBI<i>==t then
return i
endif
set i=i+1
endloop
call BJDebugMsg("|cffff0000TBI: Unrecognized expired timer!|r")
return -1
endfunction
function DestroyTimerById takes integer Id returns nothing
call PauseTimer(udg_TBI[Id])
set udg_TBIStack[udg_TBIStackN]=udg_TBI[Id]
set udg_TBIStackN=udg_TBIStackN+1
set udg_TBI[Id]=null
endfunction</i></i></i></i></i></i>
There are a few like:btw, what are the problems with CSData / HSAS?
i know all of these im not a jass noob.....example, and it did not help me that much... i even find it too complicated now, even if i probably can understand it, just not write, but for a beginner its a bit too much imo...
1. know the basics of GUI
2. learn jass converting GUI-triggers to Jass, understanding them, and editing
3. reading in forums about whats possible, look at codes and try to understand them
4. compare different attachment systems on your own
5. now youve compared them, you should understand how each of them is to use
ok, ive misunderstood thatI did not say you stole anything from ABC.
yes, i gave it a try, but it somehow screwed up my player forces and when i viewed the map in the wc3 list i just had one player slot... maybe i was doing something wrong, but thats the main reason why i dont use it... (btw i use the TEST standalone, but the one in newgen is much better.. at least i believe theres no new standalone version)I really disagree with your refusing to use vJass,
you also have some false belief that in vJass you have to use structs to make spells, that is not true, you can still make spells in vJass the standard way.
The main advantage of vJass are not structs it is the declaration of globals in code and libraries.
First removes the need for that awful variable editor and udg's,
the second removes the need for map header.
hmm okay, but youve understood what attachment systems are basically used for?im only having problem with understand attachment system which seems too complicated for me so that's why i was looking for easy to learn attachment system
struct myStructType
integer a
integer b
endstruct
function Test takes nothing returns nothing
local myStructType data = myStructType.create()
local integer i
set data.a = 123
set data.b = 123
set i = data.a + data.b
data.destroy() // not 100% sure about this line, if its the correct name for that function, but destroying is needed!
endfunction
But the main problem is that they allow you to attach stuff to units.
Attaching to units is not MUI.
There are ways to make it be MUI but it is complicated and error prone.
What you CAN do with them should never be a problem.
And attaching to units is MUI only if you perform checks on the unit first, not complicated and error prone.
And aren't you the one who made PUI, the system made only for attaching structs to units?
i know all of these im not a jass noob.....
im only having problem with understand attachment system which seems too complicated for me so that's why i was looking for easy to learn attachment system
Just about all (integer) attachment systems do exactly the same thing in different ways. The only difference between ABC and any other, where the user should be concerned, is that ABC forces you to use a different function for each handle-type.
Actually no, that is not even the most important difference.
It would do you good if you actually read what people posted before you reply.
How about logical function names?
Here is a small test for you.
Write CSData equivalents for these functions:
SetTriggerStructA
GetTriggerStructA
ClearTriggerStryctA
And where is your clear function?
(It exists btw, just is not obvious)
Very good.
Did you come to any conclusions regarding easiness?
Now, can you tell me the main difference between:
SetCSData(<handle>, 0) and ClearTriggerStructA(<handle>)
(except the obvious difference in number of parameters)