View Full Version : [C4 fixes] How make server better. All fixes in one
I begin posting that with corrections. On all. All in one.
The comment. Probably these problems at the some people do not exist. The given theme is created for people with similar files of configurations of a server and for training people to independent work.
AI.obj:
* C4 Retail AI func Dec & Hex not modified (https://postpacific.mmorpg-game.online/forums/showthread.php?t=5407) (redirect)
* Translation for Raid Bosses Manager' Menu (https://postpacific.mmorpg-game.online/forums/showthread.php?t=5404)
Areadata:
* [.\Skill.cpp][793] Unregistered skill(65535-255) (https://postpacific.mmorpg-game.online/forums/showpost.php?p=69916&postcount=8)
* invalid unittick! at map (25, 14) (https://postpacific.mmorpg-game.online/forums/showpost.php?p=69917&postcount=9)
BuilderCmdAlias:
* Full BuilderCmdAlias.txt (https://postpacific.mmorpg-game.online/forums/showthread.php?t=5323) (redirect) Owner by MuNLoK
Fstring:
Redirect... (https://postpacific.mmorpg-game.online/forums/showpost.php?p=69911&postcount=4)
Npcdata:
* invalid npc name [gonhirim_magic_golem] at file[.\NPC.cpp], line[6893] (https://postpacific.mmorpg-game.online/forums/showpost.php?p=69912&postcount=5)
* Impassable catacombs and necropolises. (https://postpacific.mmorpg-game.online/forums/showpost.php?p=69920&postcount=10)
* Unknown paramter type. npc[ketra_orc_legatus], var[WayPointDelays] (https://postpacific.mmorpg-game.online/forums/showpost.php?p=69922&postcount=11)
Npcpos:
* [.\NpcDbSocket.cpp][183] Save NpcBoss[remmel] Warning! MP[927]->MP[1028] (https://postpacific.mmorpg-game.online/forums/showpost.php?p=69909&postcount=2)
* "Maker[xxx] doesn't have ai handler. cannot set the ai parameter[xxx]" (https://postpacific.mmorpg-game.online/forums/showpost.php?p=69910&postcount=3)
Skilldata:
Vecicle:
* trying to move vehicle to invalid position (-71651, 262159) at file[.\world_server.cpp], line[2321] (https://postpacific.mmorpg-game.online/forums/showthread.php?t=5880) (redirect)
SQL scripts:
* SQL tables modifiend to update existing db to Retail (https://postpacific.mmorpg-game.online/forums/showthread.php?t=5303) (redirect)
* [.\WareHouse.cpp][4195] item delete fail[ (https://postpacific.mmorpg-game.online/forums/showpost.php?p=69913&postcount=6)
* Subclass/shortcut skill bug (https://postpacific.mmorpg-game.online/forums/showpost.php?p=69915&postcount=7)
Html:
* adventurer_agent_town_xxx.htm not found (https://postpacific.mmorpg-game.online/forums/showthread.php?t=5340) (redirect) Owner by MuNLoK
Please, thank any who helps you. The most simple way - to give reputation.
But is better give money. :D
Read last post (https://postpacific.mmorpg-game.online/forums/showpost.php?p=72201&postcount=25) with all final fixes...
10/05/2006 05:22:xx.xx9, [.\NpcDbSocket.cpp][183] Save NpcBoss[remmel] Warning! MP[927]->MP[1028]
* "Finding Nemo". Found.
territory_begin [dion04_mb2021_01] {{9600;126452;-3732;-3132};{11212;126132;-3732;-3132};{11336;127624;-3732;-3132};{9952;127352;-3732;-3132}} territory_end
npcmaker_begin [dion04_mb2021_01] initial_spawn=all maximum_npc=10
npc_begin [remmel] pos=anywhere total=1 respawn=36hour respawn_rand=24hour dbname=[ikuntai] dbsaving={death_time;parameters} npc_end
npcmaker_end
* Easy fix for this error:
territory_begin [dion04_mb2021_01] {{9600;126452;-3732;-3132};{11212;126132;-3732;-3132};{11336;127624;-3732;-3132};{9952;127352;-3732;-3132}} territory_end
npcmaker_begin [dion04_mb2021_01] initial_spawn=all maximum_npc=10
npc_begin [remmel] pos=anywhere total=1 respawn=36hour respawn_rand=24hour dbname=[remmel] dbsaving={death_time;parameters} npc_end
npcmaker_end
----
Known list:
[ikuntai] dbname=[zombie_lord_crowl] ->[ikuntai]
[flamestone_golem] dbname=[iron_giant_totem] ->[flamestone_golem]
[remmel] dbname=[ikuntai] ->[remmel]
[lizardman_leader_hellion] dbname=[remmel] ->[lizardman_leader_hellion]
Non-critical:
[master_of_ledflag_shaka] dbname=[master_of_ledflage_shaka] ->[master_of_ledflag_shaka]
[mammons_collector_talos] dbname=[mammpns_collector_talos] ->[mammons_collector_talos]
[hallate_the_death_lord] dbname=[Hallate_the_death_lord] ->[hallate_the_death_lord]
[kernon] dbname=[Kernon] ->[kernon]
[bloody_lord_nurka1] dbname=[nurka1] ->[bloody_lord_nurka1]
[bloody_lord_nurka2] dbname=[nurka2] ->[bloody_lord_nurka2]
Fix for "Maker[xxx] doesn't have ai handler. cannot set the ai parameter[xxx]"
Original post. Fix owner by MuNLoK (https://postpacific.mmorpg-game.online/forums/showthread.php?t=5446)
CopyPaste from.
-----------
Ok, to fix the problem:
08/18/2006 16:16:xx.xx1, Maker[t21_24_01801] doesn't have ai handler. cannot set the ai parameter[maker_name1]
08/18/2006 16:16:xx.xx1, Maker[t21_24_01801] doesn't have ai handler. cannot set the ai parameter[maker_name2]
08/18/2006 16:16:xx.xx1, Maker[t21_24_01801] doesn't have ai handler. cannot set the ai parameter[maker_cnt]
08/18/2006 16:16:xx.xx1, Maker[t21_24_01801] doesn't have ai handler. cannot set the ai parameter[respawn_time]
etc, etc
etc...
You need edit npcpos.txt
The problem is here, for example, for the first error Maker[t21_24_01801]:
npcmaker_ex_begin [giran08_2124_018] name=[t21_24_01801] ai=[default_maker] ai_parameters={[maker_name1]=.... etc
AI=default_maker
This AI is erroneous. In order to be able to use the "AI_Parameter" --> "maker_name1", "maker_name2"... etc you need to use the AI=maker_instant_spawn_random
class 2 maker_instant_spawn_random : default_maker
parameter_define_begin
string maker_name1 ""
string maker_name2 ""
string maker_name3 ""
...etc
You only need to do one "search&remplace" for this:
Search:
ai=[default_maker] ai_parameters={[maker_name1]
Remplace for:
ai=[maker_instant_spawn_random] ai_parameters={[maker_name1]
(UltraEdit is good for it.) And the problem is fixed :)
---------
Last release and discussion there: Original thread (https://postpacific.mmorpg-game.online/forums/showthread.php?t=5647).
Lineage II Server error:
10/07/2006 18:49:xx.xx9, invalid npc name [gonhirim_magic_golem] at file[.\NPC.cpp], line[6893]
* Finding npc. Found this:
npc_begin boss 10431 [flamestone_golem] level=44
npc_begin warrior 864 [__gonhirim_magic_golem]
npc_begin warrior 865 [__gonhirims_golem]
Errors found:
1) __gonhirims_golem - this npc disable in C4. "__" - marker for old npc.
2)
[Privates]=[gonhirim_magic_golem:gonhirim_magic_golem:1:6min;g onhirim_magic_golem:gonhirim_magic_golem:1:6min;go nhirims_golem:gonhirims_golem:1:6min;gonhirims_gol em:gonhirims_golem:1:6min]
'gonhirim_magic_golem' must be '__gonhirim_magic_golem'
'gonhirim_golem' must be '__gonhirim_golem'
* check AI:
Next error found:
AI classes for Gonhirim Golem's not existing. This npc full has been dissapered from C4.
Let's continue...
* Found interested npc:
npc_begin boss 10431 [flamestone_golem]
npc_begin zzoldagu 10432 [flame_elemental]
npc_begin zzoldagu 10433 [spark_elemental]
* We are found correct npc for this Raid Boss. Fixing:
[Privates]=[gonhirim_magic_golem:gonhirim_magic_golem:1:6min;g onhirim_magic_golem:gonhirim_magic_golem:1:6min;go nhirims_golem:gonhirims_golem:1:6min;gonhirims_gol em:gonhirims_golem:1:6min]
to
[Privates]=[flame_elemental:flame_elemental:1:6min;flame_eleme ntal:flame_elemental:1:6min;spark_elemental:spark_ elemental:1:6min;spark_elemental:spark_elemental:1 :6min]
Fixed.
10/07/2006 18:49:xx.xx9, invalid npc name [rampage_golem] at file[.\NPC.cpp], line[6893]
Make same for this npc.
Original fix owner by sys[antaris] (https://postpacific.mmorpg-game.online/forums/showthread.php?t=5990)
CopyPaste
-----
;69852']lin_GetItem
DELETE user_item WHERE item_id = @item_id
change to:
UPDATE user_item SET char_id = 0, item_type = 0 WHERE item_id = @item_id
lin_DeleteItem
DELETE user_item FROM USER_ITEM WHERE item_id=@item_id
change to:
UPDATE user_item set char_id=0, item_type=0 WHERE item_id=@item_id
lin_AmountChange
DELETE user_item WHERE char_id = @char_id AND item_id = @item_id
change to:
UPDATE user_item SET char_id = 0, item_type = 0 WHERE char_id = @char_id AND item_id = @item_id
this changes fix all errors in cached eg:
10/10/2006 15:33:xx.xx7, Item delete Error, id[304546]
10/10/2006 15:33:xx.xx7, [.\WareHouse.cpp][4195] item delete fail[304546][1835][1795]
sry my eng :)
-----
Original fix by Stazis (https://postpacific.mmorpg-game.online/forums/showthread.php?t=5643)
Symptoms:
There seems to be a problem with subclass skills, like if you subclass a necromancer. You level to say 52, learn all ur skills etc. Then if u switch back to ur main class then back to your necromancer. Alot of the skills are reset and u have to relearn them.
Fix:
ok - haven't tested yet but think solving the problem is
open user_skill for modify
remove old primary key settings
mark fields char_id,skill_id, subjob_id
and make them PRIMARY KEY - save the table
do the same with shortcut_info table.
[.\Skill.cpp][793] Unregistered skill(65535-255)
Open ur areadata.txt, search for
@s_area_death_whisper3
and change it to
@s_area_death_wisper3
invalid unittick! at map (25, 14)
CopyPaste from post by lamnh (https://postpacific.mmorpg-game.online/forums/showpost.php?p=64406&postcount=96)
open ur areadata search unit_tick=5 and chane to unit_tick=9
After an entrance in catacombs you cannot pass in one room.
Because ziggurat teleport Z position below them Z-layer of catacomb.
First fix owner by FidoW (https://postpacific.mmorpg-game.online/forums/showthread.php?t=5576)
npc_begin citizen 8095 [enter_necropolis1] level=70 acquire_exp_rate=0 acquire_sp=0 unsowing=1 clan={} ignore_clan_list={} clan_help_range=300 slot_chest=[] slot_rhand=[] slot_lhand=[] shield_defense_rate=0 shield_defense=0 skill_list={@s_race_undead;@s_full_magic_defence;@ s_npc_abnormal_immunity;@s_npc_abnormal_immunity;@ s_npc_abnormal_immunity} npc_ai={[enter_necropolis1];{[MoveAroundSocial]=0};{[MoveAroundSocial1]=0};{[MoveAroundSocial2]=0};{[Role]=0};{[SignNumber]=1};{[PosX]=-41567};{[PosY]=209828};{[PosZ]=-5112}} category={} race=etc sex=etc undying=1 can_be_attacked=0 corpse_time=7 no_sleep_mode=0 agro_range=1000 ground_high={120;0;0} ground_low={50;0;0} exp=429634528 org_hp=24xx.xx819 org_hp_regen=7.5 org_mp=1345.8 org_mp_regen=2.7 collision_radius={7;7} collision_height={15;15} str=40 int=21 dex=30 wit=20 con=43 men=10 base_attack_type=sword base_attack_range=40 base_damage_range={0;0;80;120} base_rand_dam=30 base_physical_attack=6xx.xx373 base_critical=4 physical_hit_modify=4.75 base_attack_speed=253 base_reuse_delay=0 base_magic_attack=4xx.xx463 base_defend=2xx.xx597 base_magic_defend=2xx.xx847 physical_avoid_modify=0 soulshot_count=0 spiritshot_count=0 hit_time_factor=0.6 item_make_list={} corpse_make_list={} additional_make_list={} additional_make_multi_list={} hp_increase=0 mp_increase=0 safe_height=100 npc_end
fix all PosZ to +50 for all
'8095 [enter_necropolis1]' to '8102 [enter_necropolis8]'
'8114 [enter_catacomb1]' to '8119 [enter_catacomb6]'
example:
npc_ai={[enter_necropolis1];{[MoveAroundSocial]=0};{[MoveAroundSocial1]=0};{[MoveAroundSocial2]=0};{[Role]=0};{[SignNumber]=1};{[PosX]=-41567};{[PosY]=209828};{[PosZ]=-5112}}
to
npc_ai={[enter_necropolis1];{[MoveAroundSocial]=0};{[MoveAroundSocial1]=0};{[MoveAroundSocial2]=0};{[Role]=0};{[SignNumber]=1};{[PosX]=-41567};{[PosY]=209828};{[PosZ]=-5062}}
Symptoms:
10/07/2006 18:53:xx.xx4, [.\NPC.cpp][998] Unknown paramter type. npc[ketra_orc_legatus], var[WayPointDelays]
10/07/2006 18:53:xx.xx4, [.\NPC.cpp][998] Unknown paramter type. npc[ketra_orc_legatus], var[WayPoints]
10/07/2006 18:53:xx.xx0, [.\NPC.cpp][998] Unknown paramter type. npc[varka_silenos_general], var[WayPointDelays]
10/07/2006 18:53:xx.xx0, [.\NPC.cpp][998] Unknown paramter type. npc[varka_silenos_general], var[WayPoints]
* Finding....
this npc use
class 1 party_leader_patrol : party_leader
parameter_define_begin
waypointstype WayPoints
waypointdelaystype WayPointDelays
parameter_define_end
npcdata have
npc_ai={[ketra_orc_legatus];{[MoveAroundSocial]=110};{[MoveAroundSocial1]=54};{[MoveAroundSocial2]=110};{[Privates]=[ketra_elite_guard:ketra_elite_guard:1:0;ketra_elit e_guard:ketra_elite_guard:1:0]};{[WayPoints]=0};{[WayPointDelays]=0};{[FriendShip1]=@q_ketra_friendship_1};{[FriendShip2]=@q_ketra_friendship_2};{[FriendShip3]=@q_ketra_friendship_3};{[FriendShip4]=@q_ketra_friendship_4};{[FriendShip5]=@q_ketra_friendship_5};{[SoulShot]=100};{[SoulShotRate]=50};{[PhysicalSpecial]=@s_npc_triple_sonic_slash9};{[Buff]=@s_clan_haste2};{[DeBuff]=@s_npc_shackle5};{[DeBuff1]=@s_b_k_stone}}
* Fix
remove
... {[WayPoints]=0};{[WayPointDelays]=0}; ...
because for new waypointstype it params no requires.
great work.
really big thnx for it.
//rus
Извини, если своим постом испортил топик :)
Но работа действительно заслуживает уважения.
Могу удалить.
Dainishi
11.10.2006, 11:19
Thanks HF..Really great and hard work!!!
Credits to Shawnmb.
Defragment
DECLARE Tables CURSOR FOR
SELECT DISTINCT
OBJECT_NAME([id]),
[name]
FROM dbo.sysindexes
WHERE OBJECTPROPERTY([id], 'IsUserTable') = 1
OPEN Tables
DECLARE @database varchar(128)
DECLARE @table varchar(128)
DECLARE @index varchar(128)
SET @database = DB_NAME()
FETCH NEXT FROM Tables INTO @table, @index
WHILE @@FETCH_STATUS = 0
BEGIN
PRINT 'Reindexing table ' +
ISNULL(@table, '<NULL>') +
' on index ' + ISNULL(@index, '<NULL')
IF @table IS NOT NULL AND @index IS NOT NULL
BEGIN
DBCC INDEXDEFRAG(@database, @table, @index)
END
FETCH NEXT FROM Tables INTO @table, @index
END
CLOSE Tables
DEALLOCATE Tables
Reindex
DECLARE Tables CURSOR FOR
SELECT DISTINCT
QUOTENAME(TABLE_CATALOG) + '.' +
QUOTENAME(TABLE_SCHEMA) + '.' +
QUOTENAME(TABLE_NAME)
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_TYPE = 'BASE TABLE'
OPEN Tables
DECLARE @table varchar(128)
FETCH NEXT FROM Tables INTO @table
WHILE @@FETCH_STATUS = 0
BEGIN
PRINT 'Reindexing table ' + ISNULL(@table, '<NULL>')
IF @table IS NOT NULL
BEGIN
DBCC DBREINDEX( @table)
END
FETCH NEXT FROM Tables INTO @table
END
CLOSE Tables
DEALLOCATE Tables
Next useful things:
- Tab database by right button, Shrink -> Database (lin2db, lin2world, all)
- Set in table preferences 'Simple recovery model'. Just search for it in options
Clear logs
Backup log lin2world with truncate_only
Go
Use lin2world
DBCC Shrinkfile (lin2world_log, 1)
Go
Backup log lin2db with truncate_only
Go
Use lin2db
DBCC Shrinkfile (lin2db_log, 1)
Go
Thats all about optimizing.
I just writed it in quick way, and removed ' + ' which cause error in reindex
Original Post: https://postpacific.mmorpg-game.online/forums/showthread.php?t=930
sys[antaris]
11.10.2006, 15:40
add to post #2 if know fix this:
https://postpacific.mmorpg-game.online/forums/showpost.php?p=69909&postcount=2
10/11/2006 20:34:xx.xx1, [.\NpcDbSocket.cpp][176] Save NpcBoss[gwindorr] Warning! HP[41094]->HP[28875]
npcdata:
npc_begin boss 10490 [gwindorr] ... npc_end
and
npc_begin warrior 911 [__gwindorr] ... npc_end - this is not boss and disable in c4.
npcpos:
npc_begin [gwindorr] pos=anywhere total=1 respawn=36hour respawn_rand=24hour dbname=[gwindorr] dbsaving={death_time;parameters} npc_end
in db table npc_boss:
gwindorr
any idea?
Good job HF, really good job. :)
Quite nice HF. I encourge you to continue =)
please dont flame this topic to 20+ pages.. just fixes! moder please delete all useless posts from this tread, and thanks to contributors.
TheOrder
11.10.2006, 22:46
please dont flame this topic to 20+ pages.. just fixes! moder please delete all useless posts from this tread, and thanks to contributors.
LOL ! You are funny man !
GJ Bud ! As always !
Do not change lin2world database recovery model if you want to have auto-recoverable database on the server crash (power/whatever). Simple recovery model works if you have 100% working server without power outages and so. Simple recovery model do not recover index errors, this can result in strange l2server shutdowns.
Correct way should be making lin2world log backups, then shrinking logs, all can be done within new SQL2005 maintenance plan.
=)
you're my hero aEUHAEu
Do not change lin2world database recovery model if you want to have auto-recoverable database on the server crash (power/whatever). Simple recovery model works if you have 100% working server without power outages and so. Simple recovery model do not recover index errors, this can result in strange l2server shutdowns.
Correct way should be making lin2world log backups, then shrinking logs, all can be done within new SQL2005 maintenance plan.
As stated, there are risks tied to using the "Simple" recovery model, but the gains are also very apparent. It isn't hard to schedule timed backups or find a reliable host for most people ;)
very nice... this thread should be archived.
Finished list.
Share for Pro Developers. If you can use Materials, but not full packs - you will have very good server.
Main condition: start pack must be "CN_CH4_ServerScript_ver(0412)_rel(0523)"
- use history log and fix all scripts
- use AiFixer.rar with last version L2ScriptMaker and fix all func, handlers, fetch_i, push_events in AI.obj
- use ai_exports_very_good-english-25092006.rar with last version L2ScriptMaker and fix/translate all Sxxxx message in AI.obj
Good luck to work :)
And thanks to my old friends djvogans, demon, archonus. (Team of friends)
:)
Вложения из исходного сообщения (сами файлы в копии отсутствуют):
_script_update_history.rar — 11594 байт
AiFixer.rar — 6732 байт
ai_exports_very_good-english-25092006.rar — 141282 байт
This share contains much better version of english Sxxx strings than in above post (very-good-english-...). All english quest names are verified against NCSoft web-page. All comments to quest names ("(Continue)", "(Complete)") are preserved.
To all very c00l men: I don't translate quest names, I just replaced chinese to english names...
Also I translate some Korean strings using babelfish, so if anyone give better variant of korean->english translation - I'll be happy ;)
Link to rapidshare (just in case...) http://rapidshare.com/files/6462533/ai_exports.rar.html
Вложения из исходного сообщения (сами файлы в копии отсутствуют):
ai_exports.rar — 105130 байт
This share contains much better version of english Sxxx strings than in above post (very-good-english-...). All english quest names are verified against NCSoft web-page. All comments to quest names ("(Continue)", "(Complete)") are preserved.
To all very c00l men: I don't translate quest names, I just replaced chinese to english names...
Also I translate some Korean strings using babelfish, so if anyone give better variant of korean->english translation - I'll be happy ;)
Link to rapidshare (just in case...) http://rapidshare.com/files/6462533/ai_exports.rar.htmlogo-go...
Maybe you have retail teleport list too? Make export too... pleeease :) or for me only ;)
hm... it true correct?
Succession to the xxxxx
you have as
Saga of the xxxx
never lissen this variance of translate
ogo-go...
Maybe you have retail teleport list too? Make export too... pleeease :) or for me only ;)I'm also want to make retail teleport list, but I don't know where I may look at it english version. If you point me on good link - I'll try to make it for you and for all.
hm... it true correct?
Succession to the xxxxx
you have as
Saga of the xxxx
never lissen this variance of translatehttp://www.lineage2.com/Knowledge/quest6.html
Perhaps this true only for C5 - but I don't know more true source...
Can some one share scripts "CN_CH4_ServerScript_ver(0412)_rel(0523)" ??
Thanx.