Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   [Share] C4 to C1 Conversion Tools (https://postpacific.loc-online.com/showthread.php?t=5205)

HF 19.07.2006 19:05

[Share] C4 to C1 Conversion Tools
 
Project "The hobbit there and back"

L2ScriptExecutioner
// -------------------------------------------------
// Lineage II Script Tool
// Make by HellFire, Russia, Ekaterinburg, 2005-2006
// project start at Jule 2006
// -------------------------------------------------

The utility do rewrite new retail C4 script configs to old c1 format.
- New params ignored.
- Old non-existed params create with default value.
- Old params with new format fixed (fixed list see next)

Support npcdata, itemdata, skilldata (debug mode), areadata, petdata, .
Make for C4 retail server. (For C1 its no requered :) )


L2ScriptLeecher
// -------------------------------------------------
// Lineage II Script Tool
// Make by HellFire, Russia, Ekaterinburg, 2005-2006
// project start at Jule 2006
// -------------------------------------------------

The utility do imports from any script configs and apply this to you any (same type) config.
Support only npcdata and itemdata.
Compatibility params include in full pack. Import this before leeching.
Dynamic list for imports. Only in main tool! Buy my tool! My tool better. hehe... Next step - rename all names to your real scripts names. Use L2ScriptMaker for it.

Make for C1~C4~ server modification. Work with all version release.

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
l2scriptleecher1.0.2_619.rar — 23837 байт

hel 19.07.2006 19:16

Thank you, HF! Good work!

Sunrise 19.07.2006 19:44

thank you.. perfect as always!

wton 19.07.2006 22:30

thaaaaaaaaaaaaaaanks HF ^^

TheOrder 19.07.2006 22:56

Tnx again you old fart !!! Always making miracles :lol: . Can't wait for your complete tool .

[leech on] I want to leeeeeeeeeeeeech :) [/leech off]

HF 20.07.2006 06:04

Miracle!

( see name of theme, see new attach, think and goto work )

RealHunter 20.07.2006 08:58

Thank HF ;)

2Rain 20.07.2006 09:05

Anybody tested that?

How tool work with special parameters in string "npc_ai={...}" ?
Just crop it? Or more smart?

/rus Скачал, почитал. Понятно. Я автозаменой всё делал и перетасовкой в экселе. Эффект тот же. Вот только с параметрами АИ мобов встрял. /

PS: Make anybody tool for create default strings for new npcs (in NPCdata), who absent in current C1 AI.obj.

I want this string:
Code:

////--------self define default new NPC class:

class inadaptation2C1 : warrior_passive_physicalspecial
class end

////-------- parsed NPC (with special class for developers):

parsed_from_NPCdata_new_npc_AI : inadaptation2C1
class_end

.
.
.
.
.


midnight 20.07.2006 09:47

When creating the itemdata, two forward edge the line is item_begin item_begin and needs effective_range.

lamnh 20.07.2006 10:23

thank you HF

lamnh 20.07.2006 11:30

I just have this in Itemdata.txt_parsed after convert itemdata :
Quote:

item_begin item_begin weapon 1 [small_sword] item_end
item_begin item_begin weapon 2 [long_sword] item_end
item_begin item_begin weapon 3 [broad_sword] item_end

HF 20.07.2006 11:55

Quote:

Originally Posted by midnight
When creating the itemdata, two forward edge the line is item_begin item_begin and needs effective_range.

Thanks for test. Sorry for bug 'Repeated first data_type in all files'.

Give fixed version (in first post) of L2ScriptExecutioner 1.0.1 tool.

And what about "and needs effective_range."? I check in my files - all good. Explain about your problem.

Quote:

Originally Posted by lamnh
I just have this in Itemdata.txt_parsed after convert itemdata :
Quote:

item_begin item_begin weapon 1 [small_sword] item_end
item_begin item_begin weapon 2 [long_sword] item_end
item_begin item_begin weapon 3 [broad_sword] item_end

dont know why you have short itemdata.

Quote:

Originally Posted by 2Rain
Anybody tested that?

How tool work with special parameters in string "npc_ai={...}" ?
Just crop it? Or more smart?

/rus Скачал, почитал. Понятно. Я автозаменой всё делал и перетасовкой в экселе. Эффект тот же. Вот только с параметрами АИ мобов встрял. /

PS: Make anybody tool for create default strings for new npcs (in NPCdata), who absent in current C1 AI.obj.

I want this string:
Code:

////--------self define default new NPC class:

class inadaptation2C1 : warrior_passive_physicalspecial
class end

////-------- parsed NPC (with special class for developers):

parsed_from_NPCdata_new_npc_AI : inadaptation2C1
class_end
.


I cant undestund what you need? I do it for npc,item,skill-data files. Tell what you try use? What you mean 'crap' and 'smart'? Tool do copy 1:1 from one to another file (if it checked).

sparcode 20.07.2006 12:04

Thank you, for your nice tools.

HF 20.07.2006 12:12

Quote:

Originally Posted by sparcode
Thank you, for your nice tools.

I dont required never in "Thanks". I want must know only - "My Work work work, work good and work correct". If you has tested this, only add to your message "Work good" or "Work as shit". Its better answer what i need for my work.
;)
* this message no for you personaly. but for all 100 leechers who taked this and no writed nothing about problems with my tools *

Pentalgin 20.07.2006 12:25

I just have this in npcdata.txt_parsed after convert npcdata :

npc_begin npc_begin warrior 1 [gremlin] npc_end
npc_begin npc_begin warrior 2 [rabbit] npc_end
npc_begin npc_begin warrior 3 [goblin] npc_end

midnight 20.07.2006 12:26

[quote="HF"]
Quote:

Originally Posted by midnight
And what about "and needs effective_range."? I check in my files - all good. Explain about your problem.

In C1 it has that line, if you say that it works well without her then is not put :)

HF 20.07.2006 12:47

Quote:

Originally Posted by HF
Quote:

Originally Posted by midnight
And what about "and needs effective_range."? I check in my files - all good. Explain about your problem.

In C1 it has that line, if you say that it works well without her then is not put :)

i dont understund. effective_range have and in C1 and in C4 sure..
- i start L2ScriptExecutor
- i load skilldata_c4. example 2 string from it
Code:

skill_begin        skill_name = [s_power_strike11]        /* [파워 스트라이크] */        skill_id = 3        level = 1        operate_type = A1        magic_level = 3        effect = {{i_p_attack_over_hit;25;0}}        operate_cond = {{equip_weapon;{sword;blunt}}}        is_magic = 0        mp_consume2 = 10        cast_range = 40        effective_range = 400        skill_hit_time = 1.08        skill_cool_time = 0.72        skill_hit_cancel_time = 0.5        reuse_delay = 13        attribute = attr_none        effect_point = -52        target_type = enemy        affect_scope = single        affect_limit = {0;0}        next_action = attack        ride_state = {@ride_none}        skill_end                                               
skill_begin        skill_name = [s_power_strike12]        /* [파워 스트라이크] */        skill_id = 3        level = 2        operate_type = A1        magic_level = 4        effect = {{i_p_attack_over_hit;27;0}}        operate_cond = {{equip_weapon;{sword;blunt}}}        is_magic = 0        mp_consume2 = 10        cast_range = 40        effective_range = 400        skill_hit_time = 1.08        skill_cool_time = 0.72        skill_hit_cancel_time = 0.5        reuse_delay = 13        attribute = attr_none        effect_point = -54        target_type = enemy        affect_scope = single        affect_limit = {0;0}        next_action = attack        ride_state = {@ride_none}        skill_end

- import '_skilldata_c1_to_c4_compatible_list.txt'
- press "Execute"
- in parsed file i have
Code:

skill_begin        skill_name=[s_power_strike11]        skill_id=3        level=1        operate_type=A1        magic_level=3        effect={{i_p_attack_over_hit;25;0}}        operate_cond={{equip_weapon;{sword;blunt}}}        is_magic=0        mp_consume2=10        cast_range=40        effective_range=400        skill_hit_time=1.08        skill_cool_time=0.72        skill_hit_cancel_time=0.5        reuse_delay=13        attribute=attr_none        effect_point=-52        target_type=enemy        affect_scope=single        next_action=attack        skill_end       
skill_begin        skill_name=[s_power_strike12]        skill_id=3        level=2        operate_type=A1        magic_level=4        effect={{i_p_attack_over_hit;27;0}}        operate_cond={{equip_weapon;{sword;blunt}}}        is_magic=0        mp_consume2=10        cast_range=40        effective_range=400        skill_hit_time=1.08        skill_cool_time=0.72        skill_hit_cancel_time=0.5        reuse_delay=13        attribute=attr_none        effect_point=-54        target_type=enemy        affect_scope=single        next_action=attack        skill_end

All good

midnight 20.07.2006 13:35

The line effective_range of that I speak belongs to the itemdata of c1.

HF 20.07.2006 13:40

Quote:

Originally Posted by midnight
The line effective_range of that I speak belongs to the itemdata of c1.

Your post is example "Bad report - long fix".


oh..realy.. strange.. i lost this param.
But! Param List dinamic - only add effective_range to file and you will be have your itemdata with need "effective_range" param. All easy. I lost all night for creating universal system for my tools. Only use my ideas.

HF 20.07.2006 13:57

L2ScriptExecutioner
1.0.2 -Itemdata: added support for "effective_range". Calculate correct value.

tpuNIsher 20.07.2006 13:58

good work Hf ^^
wish u had shared it some days ago though =p
wouldnt have to spend night after nights converting alone lol

keep it up ^^

HF 20.07.2006 14:03

Quote:

Originally Posted by tpuNIsher
good work Hf ^^
wish u had shared it some days ago though =p
wouldnt have to spend night after nights converting alone lol

keep it up ^^

days ago? Because scripts has been shared some days ago + work time. No materials - no work. :)
And.. i has hope what i will be have c4retail. But not... No C4Server - have much work :lol:

tpuNIsher 20.07.2006 14:10

lol yes i understand...
dont worry 3 more exes only :}

midnight 20.07.2006 14:14

The line mp_consume= {} would have of being mp_consume=0 for example (in itemdata)

HF 20.07.2006 14:24

Quote:

Originally Posted by midnight
The line mp_consume= {} would have of being mp_consume=0 for example (in itemdata)

fixed. And for all same params (same word inside param)

HF 20.07.2006 14:30

x.x.3 -correct engine for search params. Bug symptom:
have two param: one_param={} and param=0
needed 'param' imports data from 'one_param'

hel 20.07.2006 14:45

i_p_attack_over_hit;20;0 isn't correct. (and a lot of same incorrect skill effects for c1 modded server)
Correct one is i_p_attack_over_hit;20.

HF 20.07.2006 14:50

Quote:

Originally Posted by hel
i_p_attack_over_hit;20;0 isn't correct. (and a lot of same incorrect skill effects for c1 modded server)
Correct one is i_p_attack_over_hit;20.

:P only this effect? strange :D
Tool - dont checking. Only transfer params [param_name]=[param_value]. I wrote about this. Correction in skilldata - very hard work. I dont wanna lost time on it in this time. It's last step in my plan.

midnight 20.07.2006 14:51

there is some tester of itemdata that works? in itemdatachecker it even gives error me in forward edge in which it works.

evern 20.07.2006 16:04

omfg! been waiting for this!! thanks a bunch =))))

evern 20.07.2006 17:08

this is what i got after replacing skilldata with parsed file by default
[Skill.cpp][537] Parsing SkillData file failed
may i know why?
itemdata and npcdata ok with some errors to rectify

2Rain 21.07.2006 03:39

HF, sorry for my blured explain. But my friend HEL made all as I want thrue PHP. :)

zcold 21.07.2006 10:03

Exelent, as always.
Thanks, HF, good job!

HF 21.07.2006 17:12

sorry. L2ScriptLeecher bugged
1.0.2 -incorrect transfers for some mobs

HF 25.07.2006 14:00

L2ScriptExecutioner update to 1.0.8
Main tool work whithout commentaries to unknown type.

- convertion 'itemdata' to c1 format
all unknown types, values convert to correct

- convertion 'npcdata' to c1 format
ai dropped to empty npc_ai={[npcname]} because more errors with long ai param

without errors. Approve
- convertion 'skilldata' to c1 format without check errors, only transfer params
- convertion 'skilldata' to full skilldata where all skills is Passive (for testing mode)


Next updates:
- convertion skilldata with error checking
- autogeneration ai.obj for all npc

SOnick 25.07.2006 14:06

amazing

HF 01.08.2006 06:50

script progress status
------------------------------------------
ai.obj
areadata.txt compatibile
BuilderCmdAlias.txt compatibile
castledata.txt ready
categorydata.txt ready
category_pch.txt ready
decodata.txt impossible
doordata.txt compatibile
Dyedata.txt impossible
fishingdata.txt impossible
fishing_pch.txt impossible
fstring.txt compatibile (but korean)
Itemdata.txt ready
item_pch.txt ready
item_pch2.txt ready
manordata.txt impossible
manual_pch.txt ready
monrace.txt impossible
multisell.txt compatibile
npcdata.txt ready
npcpos.txt compatibile
npc_pch.txt ready
npc_pch2.txt ready
PC_parameter.txt ready
petdata.txt ready
quest_pch.txt ready
quest_pch2.txt ready
recipe.txt ready
setting.txt compatibile
skillacquire.txt ready
skilldata.txt progress
skillenchantdata.txt impossible
skill_pch.txt ready
skill_pch2.txt ready
skill_pch3.txt ready
vehicledata.txt
watch_list.txt compatibile (but korean)

Files: 37
Impossibles: 7
Ready: 19
Remain: 11

HF 01.08.2006 06:51

x.x.13 *skilldata: improved engine

1.0.12 + add ai.obj aggresive parser. Create empty class from existing ai.obj
class fixed: "class 1 test1 : test2" will be converted to ""class test1 : test2"

1.0.11 - itemdata: add {hair} slot
- itemdata: weight bug

1.0.10 + petdata: add support

1.0.9 - skilldata: aggressor: generate with default params for correct "operate_type"

1.0.8 - collision bug, mrkeeper name bug

1.0.7 - ncpdata: clan={-1} bug


Now can test server with server scripts from c4pack.

HF 01.08.2006 07:02

Easy tutorial:

- take c4 scripts - npcdata, scilldata, areadata, itemdata, ai.obj
- use l2executor with compatibile config for each config file
- generate empty ai.obj
- push to existing script folder

for c1 server update:
- make convertion for npcdata, scilldata, itemdata
- make imports for npc_ai, skill_list, magic_list parameters from C1 npcdata.txt to new C4 npcdata.txt
- change all npc names in npcpos (use L2ScriptMaker)
- remove all npcclans from manual_pch and add all clans from c4 manual_pch file
- replace your c1 files with this new scripts
Now you have your server + all mobs, all items.

JOG 14.08.2006 12:12

Good job, HF! Thanks for it!

But I have a question.
Where mobs levels are written which is accessible for client? - I say about the color of mob nickname in box whish appears, when user clicks on mob. When I change level param in npcdata, the color of mob name doesn't change! (comparsion for correct player character). If mob nick was blue for PC 75 lvl and I change this mob lvl to 75, then mob nick stay blue! BUT if I choose mob in game (as GM) and execute //setparam level 75 then mob nickcolor changes to white color!!! How to change mob lvls for game client?


All times are GMT. The time now is 16:23.