Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 15.07.2007, 08:46   #401
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default

Quote:
Originally Posted by ateh View Post
Few comments after quick look (I compare to NASC like version, so here it is...)
all what you told - this a only my standarts. No hard to change.
I think what this better it is read.

Old
Code:
class ....
  handler ....
  {
     {
     }
  }
}
and my new
Code:
class ...
  handler ....
  {
     {
     }
  }
  handler_end
}
class_end
Or you no want +11 symbols?

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();
HF is offline  
Old 15.07.2007, 10:14   #402
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default

Only two mans test it?
HF is offline  
Old 15.07.2007, 11:00   #403
ebosh
Архивный участник
 
Join Date: Sep 2006
Posts: 109
Default

HF give demo key
ebosh is offline  
Old 15.07.2007, 11:36   #404
m4rk
Архивный участник
 
Join Date: Jan 2006
Posts: 607
Default

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 ^^
m4rk is offline  
Old 15.07.2007, 11:47   #405
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default

Quote:
Originally Posted by m4rk View Post
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 ^^
I'm right to understund? All your ai code decompled perfect? If yes, then i can shout "YAAahhooo!!". :santa:
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.
HF is offline  
Old 15.07.2007, 12:34   #406
ateh
Архивный участник
 
Join Date: Apr 2006
Posts: 118
Default

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.
ateh is offline  
Old 15.07.2007, 12:42   #407
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default

Quote:
Originally Posted by ateh View Post
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...
Strange error in 0 line.

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
HF is offline  
Old 15.07.2007, 13:09   #408
ateh
Архивный участник
 
Join Date: Apr 2006
Posts: 118
Default

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 байт
ateh is offline  
Old 15.07.2007, 13:14   #409
m4rk
Архивный участник
 
Join Date: Jan 2006
Posts: 607
Default

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:
Decompilation error for :Unknown error
Unkown error
Error in : '0' line
and the report:
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.
m4rk is offline  
Old 15.07.2007, 13:46   #410
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default

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
correct retail code
Code:
L56
        push_event      //  gg
        push_const 632
        add
        fetch_i
        func_call 218103810     //  func[IsEventServer]
        push_const 1
        equal
        branch_false L59
L58
jump Lxxx
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);
your decompilation:
Code:
 ElseIf ( (reply == 532 || reply == 549) )
 {
 }
 Else
 {
         myself->ShowMultisell(reply, talker);
HF is offline  
Old 15.07.2007, 13:50   #411
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default

new build
fixed a lot exceptions, decompilation from debug window...
(attach deleted. tool released)
HF is offline  
Old 15.07.2007, 14:17   #412
Forcer
Архивный участник
 
Join Date: Apr 2006
Posts: 554
Default

In test.
2HF, Better if u create a new thread about "Decompiler"
Forcer is offline  
Old 15.07.2007, 15:02   #413
ateh
Архивный участник
 
Join Date: Apr 2006
Posts: 118
Default

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
ateh is offline  
Old 15.07.2007, 15:31   #414
Forcer
Архивный участник
 
Join Date: Apr 2006
Posts: 554
Default

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.
Forcer is offline  
Old 15.07.2007, 16:33   #415
Forcer
Архивный участник
 
Join Date: Apr 2006
Posts: 554
Default

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! :->
Forcer is offline  
Old 16.07.2007, 08:09   #416
seway
Архивный участник
 
Join Date: Jun 2007
Posts: 21
Default

HF good job ignoring the ppl that help your project making a donation i`m for 2 days waiting for your answer
seway is offline  
Old 16.07.2007, 08:41   #417
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default

Quote:
Originally Posted by seway View Post
HF good job ignoring the ppl that help your project making a donation i`m for 2 days waiting for your answer
Im has informed you, what i can send key only in monday. I has doing this. Key already sended to your e-mail.
HF is offline  
Old 16.07.2007, 20:38   #418
seway
Архивный участник
 
Join Date: Jun 2007
Posts: 21
Default

HF i just checked it here and didnt get any email, please check your pm.

Take care dude
seway is offline  
Old 17.07.2007, 15:55   #419
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default

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)
HF is offline  
Old 18.07.2007, 06:26   #420
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default

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.
HF is offline  
Old 19.07.2007, 11:55   #421
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default

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.
HF is offline  
Old 20.07.2007, 11:35   #422
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default

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'
HF is offline  
Old 20.07.2007, 13:09   #423
ZeniMax
Архивный участник
 
Join Date: May 2006
Posts: 209
Default

Quote:
Originally Posted by HF View Post
Code:
		+ 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'
ôÔ!. Great WorK HF!!!!!!!!, I want to see that too!!!!! Today I will send the money. Great great work HF.
ZeniMax is offline  
Old 20.07.2007, 13:14   #424
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default

Quote:
Originally Posted by ZeniMax View Post
ôÔ!. Great WorK HF!!!!!!!!, I want to see that too!!!!! Today I will send the money. Great great work HF.
Support only l2disasm client file format. And not tested yet. I have not testserver. But on eye-check this a good.
HF is offline  
Old 22.07.2007, 15:18   #425
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default

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'
HF is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not 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

Forum Jump


All times are GMT. The time now is 20:48.