![]() |
here i still cant open the program its asking for a license i`m using L2ScriptMaker4.0.24.1 i really need that license :(
HF pls contact me |
And how soon will be shared test version of ai dec? <_<
|
2 day testing build
1. unpack to folder 2. add l2scriptmaker.license key file from L2SM 3. add function_c4.txt file from Sauron decompiler tool ready to work For correct working, you need fix function_c4.txt. 4th param must be set to '0' for all functions. So, if this a testing - write me about bugs. But i tested with any combinations. Tool work perfect for worked class and may crash on unknown error. (new build in next posts) |
Quote:
|
Quote:
184549428|GetTimeHour,0,1 must be fix to 184549428|GetTimeHour,0,0 |
Few comments after quick look ;) (I compare to NASC like version, so here it is...)
1) Code:
handler TALK_SELECTED (talker)2) Code:
Select Case ( reply )and 'case ( 0 )' should be 'case 0:' 3) Not really important, but most people would expect to see words 'if','else', 'case','select' started with small letter, not 'If','Else','Case','Select' 4) 'parameter_define_begin' should be changed to 'parameter:'. 5) Parameters, for example 'int PosX 1' should look like this: 'int PosX = 1;' 6) After parameters, and before first handler in class there should be line with: 'handler:' 7) 'handler TALKED (talker)' should be 'EventHandler TALKED (talker)' 8) As far as I remember in nasc there was no 'elseif' condition, only 'else if' (with space) 9) Code:
ElseIf ( (reply == 532 || reply == 549) )10) Error while decompiling this code (from guard_move_around_fixed) Code:
push_event // myself |
Can someone share your fixed functions_c4.txt?
With my i can't decompile AI. ( |
Quote:
I think what this better it is read. Old Code:
class ....Code:
class ...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(); |
Only two mans test it?
|
HF give demo key :)
|
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 ^^ |
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. |
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. |
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 :D |
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 байт |
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 |
Fixed.
1) '0 line' bug cause progressbar. 2) class citizen.txt have incorrect code (if we told about standarts) this: your Code:
L56Code:
L56Lxxxx block always define Else block. If you have // then you no must have jump. Correct code: Code:
ElseIf ( (reply == 532 || reply == 549) )Code:
ElseIf ( (reply == 532 || reply == 549) ) |
new build
fixed a lot exceptions, decompilation from debug window... (attach deleted. tool released) |
In test.
2HF, Better if u create a new thread about "Decompiler" :) |
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 |
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. |
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! :-> |
HF good job ignoring the ppl that help your project making a donation :( i`m for 2 days waiting for your answer :(
|
Quote:
|
HF i just checked it here and didnt get any email, please check your pm.
Take care dude |
Code:
4.0.26.0 + AI DeCompiler. no comments |
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. |
Code:
4.0.26.1 AI.obj Shop list generator: |
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 |
Quote:
|
Quote:
|
New research. SkillData and SkillEnchantData Generator
Code:
4.0.27.1 - Skilldata Creator: add 'next_action' to A1,A2 |
Code:
4.0.28.1 - AI Decompiler: not decompile if one file selected. |
Wating for your key HF ^^
|
Quote:
I sent key long hour ago. Check e-mail. Check spam filters.. |
Code:
4.0.28.2 - AI Decompiler: 1) rebuild decompiler engine with new exceptions/shema for if/else block. Critical fix. |
Code:
4.0.29.0 + Value Incrementer Tool: generate incrementation value table with start and end value definition |
Quote:
Единственный выход, на данный момент, это погемморойничать =) Поставить галочку чтобы все абнормалы автоматом стали -1, а затем лезть в pch2 и ручками, ручками :) Надеюсь HF исправит это в ближайшем бильде :( [/rus] |
[esp]No se que has escrito (¬¬) pero el problema era el manual_pch que venia ya mal.... Con dejarlo tal como lo genera esta herramienta ira perfecto[/esp]
|
Quote:
I'll not to fix in tool. You need only use correct abnormal names. This all. |
| All times are GMT. The time now is 17:21. |