![]() |
|
|
#1 |
|
Архивный участник
Join Date: Feb 2006
Posts: 453
|
no suggestions
|
|
|
|
|
#2 |
|
Архивный участник
Join Date: Jun 2005
Posts: 262
|
Why not decompile it into something people already know, like nasc? ;o
|
|
|
|
|
#3 | |
|
Архивный участник
Join Date: Feb 2006
Posts: 453
|
Quote:
|
|
|
|
|
|
#4 |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
yes, i agree, that decompiled is easy to understand, but maybe is best NASC...
|
|
|
|
|
#5 | |
|
Архивный участник
Join Date: Feb 2006
Posts: 453
|
Quote:
|
|
|
|
|
|
#6 |
|
Архивный участник
Join Date: Jan 2006
Posts: 607
|
you could make depend the language it decompiles into on a .txt file so that if other people are willing they could do the NASC txt
|
|
|
|
|
#7 |
|
Архивный участник
Join Date: Feb 2006
Posts: 453
|
dunno.. dunno...
:? |
|
|
|
|
#8 | |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
Quote:
|
|
|
|
|
|
#9 |
|
Архивный участник
Join Date: Feb 2006
Posts: 453
|
never mind
|
|
|
|
|
#10 |
|
Архивный участник
Join Date: Oct 2005
Posts: 267
|
Yeah your decompilation looks good and is pretty much NASC. There is one problem that I see though unless the "code" is playing tricks on my eyes.
In control structures, equal comparisons are done with "==" and not single "=". Single "=" are assignements. A decompiler would be awesome as long as it bounced it down to NASC. It would allow us more serious developers to highly modify the existing classes without having to completley re-write them. However, the best and most reliable way of compiling is NASC so I think your decompiler should decompile down to that. I have attached to this (just in case you dont have it) a sample NASC script as well as some included documentation. I know NASC pretty well and decompiling into NASC would be the best for the community as a whole. If you need any insight on NASC knowledge, I could assist you. The following code is just some examples of nasc. While incomplete, and class variables not shown are referenced, you will see the overall flow of how it is done. Code:
EventHandler MOVE_TO_WAY_POINT_FINISHED(way_point_index, next_way_point_index)
{
if (debug == 1) { Say("MOVE_TO_WAY_POINT_FINISHED Handler Fired");}
myself.i_ai0 = next_way_point_index;
AddTimerEx(100001, (GetWayPointDelay(WayPointDelays, way_point_index)*1000));
}
EventHandler TIMER_FIRED_EX(timer_id)
{
if (debug == 1) { Say("TIMER_FIRED_EX Handler Fired");}
if (timer_id == 100001)
{// waypoints
if (myself.i_ai0 > 0)
{
AddMoveToWayPointDesire(WayPoints, WayPointDelays, myself.i_ai0, MoveToWayPoint_BoostValue);
}
else
{
AddMoveToWayPointDesire(WayPoints, WayPointDelays, 1, MoveToWayPoint_BoostValue);
}
}
}
EventHandler SEE_ITEM(item)
{
if (debug == 1) { Say("SEE_ITEM Handler Fired");}
AddGetItemDesire(item, GetItem_BoostValue);
}
EventHandler GET_ITEM_FINISHED(item, i0)
{
if (debug == 1) { Say("GET_ITEM_FINISHED Handler Fired");}
if ((OwnItemCount(myself, item) >= 1))
{
i0 = Rand(100);
if (i0 <= 33)
{
Say(MakeFString(ItemPickupMsg1, "", "", "", "", ""));
}
else if ((i0 >= 34) && (i0 <= 66))
{
Say(MakeFString(ItemPickupMsg2, "", "", "", "", ""));
}
else
{
Say(MakeFString(ItemPickupMsg3, "", "", "", "", ""));
}
}
}
|
|
|
|
|
#11 |
|
Архивный участник
Join Date: Feb 2006
Posts: 453
|
thanks, Firedaemon
|
|
|
|
|
#12 |
|
Архивный участник
Join Date: Oct 2005
Posts: 267
|
In NASC, you simply write the following code to call_super
Code:
super; Code:
return; |
|
|
|
|
#13 |
|
Архивный участник
Join Date: Nov 2005
Posts: 215
|
Amazing :?
|
|
|
|
|
#14 |
|
Архивный участник
Join Date: Apr 2005
Posts: 122
|
very good humo, this going to be public?
|
|
|
|
|
#15 |
|
Архивный участник
Join Date: Sep 2005
Posts: 455
|
I 100% prefer nasc.exe
|
|
|
|
|
#16 |
|
Архивный участник
Join Date: Feb 2006
Posts: 453
|
work frozen
|
|
|
|
|
#17 |
|
Архивный участник
Join Date: Jul 2005
Posts: 123
|
frozen? noooooooooooooooooooo :'(
|
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|