![]() |
|
|
#51 |
|
Guest
Posts: n/a
|
being 64 or 32bits doesn't change much really.. In my case it's easier to code a new compiler than change 30% of the old one.
Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 19 October 2007, 21:35. Открыть источник. |
|
|
#52 |
|
Guest
Posts: n/a
|
When i trying compile my ai i have this error, or it my mistake?
Var ID Error myself::GetCurrentTick()-talker Event Var ID Error quest_last_reward_time Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 20 October 2007, 02:22. Открыть источник. |
|
|
#53 |
|
Guest
Posts: n/a
|
ur'e the first one i'm gonna click good share for when i can
Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 20 October 2007, 16:36. Открыть источник. |
|
|
#54 |
|
Guest
Posts: n/a
|
2Sauron,
Look on this error: [{"scroll_of_escape_to_agit";10;1.000000;5};{"bless ed_scroll_of_escape_to_agit"; 10;1.000000;3};{"deluxe_food_for_strider";10;1.000 000;10}] is not a valid [BuySe llList] This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. This happens on class steward, i using your decompiled ai. So, i think again error with buysell lists? NASC.exe is crashed on this BuySellList (I so think) BuySellList SellList1 = {{"scroll_of_escape_to_agit"; 10; 1.000000; 5};{"blessed_scroll_of_escape_to_agit"; 10; 1.000000; 3};{"deluxe_food_for_strider"; 10; 1.000000; 10}}; After i removed class steward i got new errors, especial this unknown param myself::Castle_GetRawSiegeTime()-myself::Castle_GetRawSystemTime() Also i do big experiment, and i found one more crash place (still steward, block ask -201) switch( ( myself::Agit_GetDecoLevel( decotype_item ) - 10 ) ) This code... Look for this errors, please. Or maybe some functions is not implemented? p.s In general, i compiling alot of ai classes for find major bugs :) Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 20 October 2007, 21:33. Открыть источник. |
|
|
#55 |
|
Guest
Posts: n/a
|
hehe i forgot the + in the ereg :P
Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 20 October 2007, 22:24. Открыть источник. |
|
|
#56 |
|
Guest
Posts: n/a
|
Big thanks for so quickly answer.
Now works, i will write in this thread if i find new bugs. Keep up good work! :P Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 20 October 2007, 22:29. Открыть источник. |
|
|
#57 |
|
Guest
Posts: n/a
|
Hah ;)
Let's welcome next bug... EventHandler TALKED(talker) { myself::Say( "Hello, = " + talker.name ); } This code will throw error: [myself::Say("Hello, ] is not a valid [variable] error!!!!!! key: ( myself::Say("Hello, unknown param myself::Say("Hello, And THIS code will be compiled successfully EventHandler TALKED(talker) { myself::Say( "Hello, " + talker.name ); } I hope sauron, that you see difference? :P I talking about symbol _=_ in strings "" See better, maybe not only = is affected to throw this error. // Added Also nasc.exe is crashing on class ai_boss01_queen_ant with a HUGE error (rofl) :D I suspect this string string Privates = "nurse_ant:nurse_ant:2:10sec;nurse_ant:nurse_ant:2 : 10sec;nurse_ant:nurse_ant:2:10sec; ;royal_guard_ant:royal_guard_ant:1:20sec;royal_gua rd_ant:royal_guard_ant:1:20sec = ; ;royal_guard_ant:royal_guard_ant:1:20sec;royal_gua rd_ant:royal_guard_ant:1:20sec" = ; Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 20 October 2007, 22:48. Открыть источник. |
|
|
#58 |
|
Guest
Posts: n/a
|
compiler allows if(a = b) but it shouldnt. only if(a == b) should be allowed. in the other hand a = b maybe should be understood as true. if(a = b) means if we assign b to a and that is true always.
Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 20 October 2007, 23:07. Открыть источник. |
|
|
#59 |
|
Guest
Posts: n/a
|
Next minor bug...
if( myself::IsInCategory( @summon_npc_group, attacker.npc_class_id ) ) Will create a ScriptError? What means this error? Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 20 October 2007, 23:11. Открыть источник. |
|
|
#60 |
|
Guest
Posts: n/a
|
whats this repeted script stuff in error.txt? because there are no duplicated ids/names in pchs
Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 20 October 2007, 23:39. Открыть источник. |
|
|
#61 |
|
Guest
Posts: n/a
|
compiler allows if(a = b) but it shouldnt. only if(a == b) should be allowed. in the other hand a = b maybe should be understood as true. if(a = b) means if we assign b to a and that is true always.
No, you are wrong. a = b means assign b to a, and THEN check a for true. If a is true (not 0) then enter this block. There is nothing wrong with that code. This is C coding, not Java :) Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 21 October 2007, 02:26. Открыть источник. |
|
|
#62 |
|
Guest
Posts: n/a
|
whats this repeted script stuff in error.txt? because there are no duplicated ids/names in pchs
not in the same, but maybe there are names repeted in other txt. So if you put @adena, the compiler doesn't know if it has to use the item_id or let say and skill named adena. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 21 October 2007, 03:02. Открыть источник. |
|
|
#63 |
|
Guest
Posts: n/a
|
No, you are wrong. a = b means assign b to a, and THEN check a for true. If a is true (not 0) then enter this block.
There is nothing wrong with that code. This is C coding, not Java :) upss, my bad Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 21 October 2007, 10:28. Открыть источник. |
|
|
#64 |
|
Guest
Posts: n/a
|
Hey sauron, any news about yesterday bugs? %)
Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 21 October 2007, 17:20. Открыть источник. |
|
|
#65 |
|
Guest
Posts: n/a
|
Hah ;)
Let's welcome next bug... This code will throw error: And THIS code will be compiled successfully I hope sauron, that you see difference? :P I talking about symbol _=_ in strings "" See better, maybe not only = is affected to throw this error. // Added Also nasc.exe is crashing on class ai_boss01_queen_ant with a HUGE error (rofl) :D I suspect this string ok i fixed the bug with the symbol in the string. Concerning definitions, you cannot do this asd = "lala lalal"; so in your case there are 2 errors. The string being in 3 lines and having =; at the end Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 22 October 2007, 20:29. Открыть источник. |
|
|
#66 |
|
Guest
Posts: n/a
|
Good, what about inserting missed IDs of functions like GiveItemEx?
Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 22 October 2007, 20:44. Открыть источник. |
|
|
#67 |
|
Guest
Posts: n/a
|
Hmmm...maybe SP2.
As variant, try to install winxp+sp2...for example to VirtualPC and test it. Or ask on forums, like ruboard. Sauron can you fix 000000000 IDs of some functions? Manual replacing is boring, i can give functions list. (He was shared by adriahu some days ago). Or..better make functions.txt (ex: AddAttackDesire|000000000) etc. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. В снимке указана только дата, без времени: 23 October 2007. Открыть источник. |
|
|
#68 |
|
Guest
Posts: n/a
|
Sauron, please add category_pch parsing.
Cuz cannot be used in code constans, such as @third_class_group etc. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. В снимке указана только дата, без времени: 23 October 2007. Открыть источник. |
|
|
#69 |
|
Guest
Posts: n/a
|
there is a thread "[SHARE PRIVATE] C4 Nasc FULL V 2.0" which ISN'T MINE. DO NOT DONWLOAD IT. anyway i deleted it.
Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. В снимке указана только дата, без времени: 23 October 2007. Открыть источник. |
|
|
#70 |
|
Guest
Posts: n/a
|
Very Happy Where button downgrade Reputation to negative? None? Saaaddd....
Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. В снимке указана только дата, без времени: 23 October 2007. Открыть источник. |
|
|
#71 |
|
Guest
Posts: n/a
|
Sauron, this was trojan.
Look for same thread in russian section. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. В снимке указана только дата, без времени: 23 October 2007. Открыть источник. |
|
|
#72 |
|
Guest
Posts: n/a
|
Great i got one of my comp infected.
Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. В снимке указана только дата, без времени: 23 October 2007. Открыть источник. |
|
|
#73 |
|
Guest
Posts: n/a
|
Quote:
Originally Posted by Forcer View Post Sauron can you fix 000000000 IDs of some functions? Manual replacing is boring, i can give functions list. (He was shared by adriahu some days ago). Or..better make functions.txt (ex: AddAttackDesire|000000000) etc. give me the list, because the compiler needs more data than function name and id. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. В снимке указана только дата, без времени: 23 October 2007. Открыть источник. |
|
|
#74 |
|
Guest
Posts: n/a
|
Okay, i will send u pm in about one hour.
Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. В снимке указана только дата, без времени: 23 October 2007. Открыть источник. |
|
|
#75 |
|
Guest
Posts: n/a
|
Hi Sauron, here is a bug report for you regarding L branches under an elseif condition.
class 1 summon_default : default_npc { parameter: handler: EventHandler ATTACKED (attacker, damage, skill_name_id, i0, i1, i2, i3) { if(skill_name_id >= 357121 && skill_name_id <= 357130 ) { i1 = skill_name_id; if( i1 == 357121 ) { i0 = 57; } elseif( i1 == 357122 ) { i0 = 59; } elseif( i1 == 357123 ) { i0 = 61; } elseif( i1 == 357124 ) { i0 = 63; } elseif( i1 == 357125 ) { i0 = 65; } elseif( i1 == 357126 ) { i0 = 67; } elseif( i1 == 357127 ) { i0 = 69; } elseif( i1 == 357128 ) { i0 = 71; } elseif( i1 == 357129 ) { i0 = 73; } elseif( i1 == 357130 ) { i0 = 75; } i2 = (50 + ((i0 - myself.sm.level) * 2)); if( gg::Rand(100) < i2 ) { myself::Despawn(); } } elseif( skill_name_id == 364546 ) { myself::Despawn(); } elseif( skill_name_id >= 353281 && skill_name_id <= 353290) { myself::AddAttackDesire(myself.master, 1, 1500); } } } The compiler compiles it into stack as; class 1 summon_default : default_npc parameter_define_begin parameter_define_end handler 1 204 // ATTACKED variable_begin "attacker" "damage" "skill_name_id" "i0" "i1" "i2" "i3" "myself" "_choiceN" "_code" "_from_choice" variable_end push_event // skill_name_id push_const 180 add fetch_i4 push_const 357121 greater_equal push_reg_sp fetch_i branch_false L3 push_event // skill_name_id push_const 180 add fetch_i4 push_const 357130 less_equal and L3 branch_false L2 L1 push_event // i1 push_const 264 add fetch_i4 push_const 357121 equal branch_false L5 L4 jump L6 L5 push_event // i1 push_const 264 add fetch_i4 push_const 357122 equal branch_false L8 L7 jump L9 L8 push_event // i1 push_const 264 add fetch_i4 push_const 357123 equal branch_false L11 L10 jump L12 L11 push_event // i1 push_const 264 add fetch_i4 push_const 357124 equal branch_false L14 L13 jump L15 L14 push_event // i1 push_const 264 add fetch_i4 push_const 357125 equal branch_false L17 L16 jump L18 L17 push_event // i1 push_const 264 add fetch_i4 push_const 357126 equal branch_false L20 L19 jump L21 L20 push_event // i1 push_const 264 add fetch_i4 push_const 357127 equal branch_false L23 L22 jump L24 L23 push_event // i1 push_const 264 add fetch_i4 push_const 357128 equal branch_false L26 L25 jump L27 L26 push_event // i1 push_const 264 add fetch_i4 push_const 357129 equal branch_false L29 L28 jump L30 L29 push_event // i1 push_const 264 add fetch_i4 push_const 357130 equal branch_false L32 L31 L32 L30 L27 L24 L21 L18 L15 L12 L9 L6 push_event // gg push_const 632 add fetch_i push_const 100 func_call 218169344 // func[Rand] shift_sp -1 push_event // i2 push_const 268 add fetch_i4 less branch_false L34 L33 push_event // myself push_const 704 add fetch_i func_call 184549616 // func[Despawn] shift_sp -1 L34 jump L35 L2 push_event // skill_name_id push_const 180 add fetch_i4 push_const 364546 equal branch_false L37 L36 push_event // myself push_const 704 add fetch_i func_call 184549616 // func[Despawn] shift_sp -1 jump L38 L37 push_event // skill_name_id push_const 180 add fetch_i4 push_const 353281 greater_equal push_reg_sp fetch_i branch_false L41 push_event // skill_name_id push_const 180 add fetch_i4 push_const 353290 less_equal and L41 branch_false L40 L39 push_event // myself push_const 704 add fetch_i push_event // myself push_const 704 add fetch_i // master push_const 552 add fetch_i push_const 1 push_const 1500 func_call 184745993 // func[AddAttackDesire] shift_sp -3 shift_sp -1 L40 L38 L35 handler_end class_end The L branches are a bit messed up and the code excludes the code which is between the elseif branches. i0 is not being assigned Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 22 October 2007, 23:55. Открыть источник. |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|