![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#401 | |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
Quote:
I think what this better it is read. Old Code:
class ....
handler ....
{
{
}
}
}
Code:
class ...
handler ....
{
{
}
}
handler_end
}
class_end
![]() Select Case () -> Select (). This is a only required to COMPILER what will be compile this code. Accept? If this compiler will be myself. Then all standarts can be any. Sure, i'll be made it combatible with all.All defines and etc... this it a only debug and first standarts build. I dont good lines for all tellist, buysel list and etc. Only simple parsing. Understund what i say? ![]() about Else... I need check it. Tell me class what you decompile. But i teach all shemas for all select, case, if, ifelse, while, for blocks. My tool must be do it correct. about function 184549453|InstantRandomTeleportInMyTerritory,0,0 all correct for me myself->InstantRandomTeleportInMyTerritory(); |
|
|
|
|
|
#402 |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
Only two mans test it?
|
|
|
|
|
#403 |
|
Архивный участник
Join Date: Sep 2006
Posts: 109
|
HF give demo key
|
|
|
|
|
#404 |
|
Архивный участник
Join Date: Jan 2006
Posts: 607
|
HF I just tested it through all my custom AI jobs and it seems to decompile correctly.
About using your own syntax it is fine, it's not a big difference with the old c1 nasc ^^ |
|
|
|
|
#405 | |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
Quote:
You do tested manual code to decompile? Yes. Syntaxys - it no problem. Main idea for Decompilation - show code to people in better readable mode. But if you have Compiler, then you need have compatible for it. I sure, what who have Compiler no have compatible on 100% with Sauron decompiler. And... i can do compatible with any compiler. But ... now testing time. |
|
|
|
|
|
#406 |
|
Архивный участник
Join Date: Apr 2006
Posts: 118
|
If you want your own standards then ok, it's up to you
It's easy to convert anyway. I'm just kind of person who does not like to see 100 standards around ![]() About this else's, turned out it was some mistake in my AI after some fixes(citizen class), so it's OK. What else... many errors. I put 1 class (citizen) in ai.obj and press start, and it shows error "Decompilaiton error for :Unkwnown error" "Error in : '0' line. In error debug window: "0: -> class 1 citizen : default_npc" I don't get what is wrong here... This class decompiles correctly in AI with all classes... Another bug - when program shows errors it shows line number incorrectly. I put AI with around 4000 lines in it, and program shows error in line 7432... Besides this things program decompiles OK. My custom classes were decompiled OK too. Suggestion: Option 'Open decompiled file after compilation' would be better as off by default... It takes ages for it to open result file in notepad, especially if people like to use different editor. |
|
|
|
|
#407 | |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
Quote:
This errors i must see myself. Send me class if you want to debug it. On error tool show line number, class and saved class to file 'ai_out_abort.txt'. I know one If tool crash - class incorrect
|
|
|
|
|
|
#408 |
|
Архивный участник
Join Date: Apr 2006
Posts: 118
|
Class is OK. It happens when I copy one class from big AI to new file and try to decompile this file only. Then this 'line 0' error.
If I put two classes in new file, then first class decompile ok, and error on second class... So it seems like tool has error when trying to decompile last class in file, and it doesn't matter which class it is (if i switch them - first class 2, then class 1, then class 1 doesn't decompile...) Strange... Ps. Error exactly the same as m4rk posted in next post. Вложения из исходного сообщения (сами файлы в копии отсутствуют): ai.rar — 3251 байт |
|
|
|
|
#409 | |
|
Архивный участник
Join Date: Jan 2006
Posts: 607
|
Mmmh, I only tried the manual decompilation (I didn't try all my AI, just some classes I wrote by myself).
However when I try the ai.obj file decompilationI have the same error in 0 line , I think it's a problem of mine, anyway I'll reproduce it here: This is the ai.obj I try to decompile This is an image of my folder and the options I use (default ones). And the error given: Quote:
Code:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at AFXwj.ANfNgbH3PV5J()
at AFXwj.AKJylaLSc(String , String )
at AFXwj.ALNV()
at AFXwj.APjnPjxsY8TwBYl(Object , EventArgs )
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.507xx.xx (RTM.050727-4200)
CodeBase: file:///H:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
ezencryption_lib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.507xx.xx (RTM.050727-4200)
CodeBase: file:///H:/WINDOWS/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.507xx.xx (RTM.050727-4200)
CodeBase: file:///H:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.507xx.xx (RTM.050727-4200)
CodeBase: file:///H:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.507xx.xx (RTM.050727-4200)
CodeBase: file:///H:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
License
Assembly Version: 1.0.0.0
Win32 Version: 2.0.507xx.xx (RTM.050727-4200)
CodeBase: file:///H:/WINDOWS/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
ziplib
Assembly Version: 1.0.0.0
Win32 Version: 2.0.507xx.xx (RTM.050727-4200)
CodeBase: file:///H:/WINDOWS/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
AIDecompiler
Assembly Version: 1.0.0.42110
Win32 Version: 2.0.507xx.xx (RTM.050727-4200)
CodeBase: file:///H:/WINDOWS/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.507xx.xx (RTM.050727-4200)
CodeBase: file:///H:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.507xx.xx (RTM.050727-4200)
CodeBase: file:///H:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
|
|
|
|
|
|
#410 |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
Fixed.
1) '0 line' bug cause progressbar. 2) class citizen.txt have incorrect code (if we told about standarts) this: your Code:
L56
//push_event // gg
//push_const 632
//add
//fetch_i
//func_call 218103810 // func[IsEventServer]
//push_const 1
//equal
//branch_false L59
jump L59
L58
Code:
L56
push_event // gg
push_const 632
add
fetch_i
func_call 218103810 // func[IsEventServer]
push_const 1
equal
branch_false L59
L58
Lxxxx block always define Else block. If you have // then you no must have jump. Correct code: Code:
ElseIf ( (reply == 532 || reply == 549) )
{
If ( gg->IsEventServer() == 1 )
{
myself->ShowMultisell(reply, talker);
Code:
ElseIf ( (reply == 532 || reply == 549) )
{
}
Else
{
myself->ShowMultisell(reply, talker);
|
|
|
|
|
#411 |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
new build
fixed a lot exceptions, decompilation from debug window... (attach deleted. tool released) |
|
|
|
|
#412 |
|
Архивный участник
Join Date: Apr 2006
Posts: 554
|
In test.
2HF, Better if u create a new thread about "Decompiler"
|
|
|
|
|
#413 |
|
Архивный участник
Join Date: Apr 2006
Posts: 118
|
I know about this citizen, that's why there were this else's one after another before
![]() Testing new build now. Edit: New build works much better No errors, all fine.Too bad it works so slowly, but hey, there is no need to decompile whole AI many times ;P |
|
|
|
|
#414 |
|
Архивный участник
Join Date: Apr 2006
Posts: 554
|
my suggestion - add new checkbox for skip ai errors.
Example: Occurs error\exception while decomp. and if checkbox true, then continue and jump to next class, also append info about broken class to error-log file with pointer to "bad" string. |
|
|
|
|
#415 |
|
Архивный участник
Join Date: Apr 2006
Posts: 554
|
REPORT:
Tool works FINE, i put my heavy ai and in 40 min decompilation (split to classes) finished with success, no errors, exceptions etc. Very very fine. Good work HF! :-> |
|
|
|
|
#416 |
|
Архивный участник
Join Date: Jun 2007
Posts: 21
|
HF good job ignoring the ppl that help your project making a donation
i`m for 2 days waiting for your answer
|
|
|
|
|
#417 |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
|
|
|
|
|
#418 |
|
Архивный участник
Join Date: Jun 2007
Posts: 21
|
HF i just checked it here and didnt get any email, please check your pm.
Take care dude |
|
|
|
|
#419 |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
Code:
4.0.26.0 + AI DeCompiler. no comments * AI Injector: add feature for split only One class. Leave text block empty for all class uploading. Or write name for uploading class (only name, whithout class numbers and master-class names) 4.0.25.0 + Skilldata Effect Researcher: parsing for effect for generating file with all skilldata effects with examples 4.0.24.1 + Script ID-Name Shower: Note: module search params: id=, name=. If your file have diff names, you can replace your to required 1) add huntingzone-e.txt, staticobject-e.txt, sysstring-e.txt to supported list 2) short mode show 'description' parameter too. (Note: required 'description=' param) - Skill_Pch/Pch2 Generator: fix for generation 11 param in skill_pch2. Fix formula. (Thanks Kenjiro for this information) |
|
|
|
|
#420 |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
Note1: If you Not have new licence file for 4.0.26.0 build - DONT update tool, because you will lost worked tool.
Note2: Last build 4.0.26.0 work without licence only 3 mins like in demo mode. If you like this - use it as is. If not - donate my work and give good tool. Note3: function_c4.txt in pack no full. You must do it self. Find "C4Decompiler by Sauron", get this file from pack and replace in tool. Next, replace all 4th parameter (0 or 1) to 0. Decompiler ready to work. |
|
|
|
|
#421 |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
Code:
4.0.26.1 AI.obj Shop list generator: - crash on taxrate >50. Combobox changed to Textbox - add scrollbars to result window SkillAquire Editor: * add sorting to skillname column (press to column name for sorting) * add support for insert skillname and itemname to current position (because clipboard paste disable for DataGrid) * improved support for new rows. Add buttons for creating copy/new before/after current line AI Decompliler: - symptom - decompilated code have same "text" from Sxx string like before. But: Sxxx array not cleaned. * add checking for undefined variable in handler - checkbox "Open decompiled file after decompilation" now disable for default state. Enable it, if you file no big. |
|
|
|
|
#422 |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
Code:
4.0.27.0 * NpcData Passive Skill fixer (old): rename C4 module. module for import passive skills ('skill_list') from client file to ncpdata.txt. Use old parsed client file format
* NpcData Passive Skill fixer (l2disasm): add new module for import passive skills ('skill_list') from client file to ncpdata.txt. Use L2Disasm client file format
+ Skilldata Creator: generate clean skilldata.txt from client files (skilldata-e.txt and skillgrp.txt). Transfer a lot params:
commentaries in /* */, is_magic, mp/hp_consume, cast_range, debuff, hit_time. And create this params with use intelligence engine:
ride_state, mp1/mp2 consume, effective_range, target_type. Use 4 shemas for creating clean skills with A1,A2,P,T of types.
Autogenerator for skillname. Example, 'Master's Blessing - Chant of Victory' to 's_masters_blessing_chant_of_victory1'
|
|
|
|
|
#423 | |
|
Архивный участник
Join Date: May 2006
Posts: 209
|
Quote:
|
|
|
|
|
|
#424 |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
|
|
|
|
|
#425 |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
New research. SkillData and SkillEnchantData Generator
Code:
4.0.27.1 - Skilldata Creator: add 'next_action' to A1,A2 * Skilldata Creator: add new module SkillEnchantData.txt Generator. Generated both with skilldata.txt set default params: exp=3000000, sp=300000, prob_76=0, prob_77=0, prob_78=0 'SkillData Generator' renamed to 'SkillData and SkillEnchantData Generator' |
|
|
|
|