Post Pacific  

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

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 11.10.2006, 04:44   #1
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default [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 (redirect)
* Translation for Raid Bosses Manager' Menu
Areadata:
* [.\Skill.cpp][793] Unregistered skill(65535-255)
* invalid unittick! at map (25, 14)
BuilderCmdAlias:
* Full BuilderCmdAlias.txt (redirect) Owner by MuNLoK
Fstring:
Redirect...
Npcdata:
* invalid npc name [gonhirim_magic_golem] at file[.\NPC.cpp], line[6893]
* Impassable catacombs and necropolises.
* Unknown paramter type. npc[ketra_orc_legatus], var[WayPointDelays]
Npcpos:
* [.\NpcDbSocket.cpp][183] Save NpcBoss[remmel] Warning! MP[927]->MP[1028]
* "Maker[xxx] doesn't have ai handler. cannot set the ai parameter[xxx]"
Skilldata:
Vecicle:
* trying to move vehicle to invalid position (-71651, 262159) at file[.\world_server.cpp], line[2321] (redirect)
SQL scripts:
* SQL tables modifiend to update existing db to Retail (redirect)
* [.\WareHouse.cpp][4195] item delete fail[
* Subclass/shortcut skill bug
Html:
* adventurer_agent_town_xxx.htm not found (redirect) Owner by MuNLoK

Please, thank any who helps you. The most simple way - to give reputation.
But is better give money.


Read last post with all final fixes...
HF is offline  
Old 11.10.2006, 04:49   #2
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default Npcpos bug

10/05/2006 05:22:xx.xx9, [.\NpcDbSocket.cpp][183] Save NpcBoss[remmel] Warning! MP[927]->MP[1028]

* "Finding Nemo". Found.
Code:
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:
Code:
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:
Code:
[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]
HF is offline  
Old 11.10.2006, 04:51   #3
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default Npcpos Bug

Fix for "Maker[xxx] doesn't have ai handler. cannot set the ai parameter[xxx]"

Original post. Fix owner by MuNLoK

CopyPaste from.
-----------
Quote:
Originally Posted by MuNLoK View Post
Ok, to fix the problem:

Code:
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]:

Code:
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

Code:
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
---------
HF is offline  
Old 11.10.2006, 04:53   #4
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default Fstring Bug

Last release and discussion there: Original thread.
HF is offline  
Old 11.10.2006, 04:54   #5
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default

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:
Code:
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)
Code:
[Privates]=[gonhirim_magic_golem:gonhirim_magic_golem:1:6min;gonhirim_magic_golem:gonhirim_magic_golem:1:6min;gonhirims_golem:gonhirims_golem:1:6min;gonhirims_golem: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:
Code:
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:
Code:
[Privates]=[gonhirim_magic_golem:gonhirim_magic_golem:1:6min;gonhirim_magic_golem:gonhirim_magic_golem:1:6min;gonhirims_golem:gonhirims_golem:1:6min;gonhirims_golem:gonhirims_golem:1:6min]
to
Code:
[Privates]=[flame_elemental:flame_elemental:1:6min;flame_elemental: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.
HF is offline  
Old 11.10.2006, 04:55   #6
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default SQL bug: Item delete Error and etc...

Original fix owner by sys[antaris]

CopyPaste
-----

Quote:
Originally Posted by sys[antaris] View Post
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:

Code:
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
-----
HF is offline  
Old 11.10.2006, 05:01   #7
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default SQL Bug: skills and shortcut dissapered with subclass-change

Original fix by Stazis

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.
HF is offline  
Old 11.10.2006, 05:06   #8
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default AreaData bug

[.\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
HF is offline  
Old 11.10.2006, 05:14   #9
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default AreadData bug

invalid unittick! at map (25, 14)

CopyPaste from post by lamnh

open ur areadata search unit_tick=5 and chane to unit_tick=9
HF is offline  
Old 11.10.2006, 05:32   #10
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default NpcData bug: Impassable catacombs and necropolises.

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

Code:
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:
Code:
npc_ai={[enter_necropolis1];{[MoveAroundSocial]=0};{[MoveAroundSocial1]=0};{[MoveAroundSocial2]=0};{[Role]=0};{[SignNumber]=1};{[PosX]=-41567};{[PosY]=209828};{[PosZ]=-5112}}
to
Code:
npc_ai={[enter_necropolis1];{[MoveAroundSocial]=0};{[MoveAroundSocial1]=0};{[MoveAroundSocial2]=0};{[Role]=0};{[SignNumber]=1};{[PosX]=-41567};{[PosY]=209828};{[PosZ]=-5062}}
HF is offline  
Old 11.10.2006, 05:52   #11
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default

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
Code:
class 1 party_leader_patrol : party_leader
parameter_define_begin
        waypointstype WayPoints
        waypointdelaystype WayPointDelays
parameter_define_end
npcdata have
Code:
	npc_ai={[ketra_orc_legatus];{[MoveAroundSocial]=110};{[MoveAroundSocial1]=54};{[MoveAroundSocial2]=110};{[Privates]=[ketra_elite_guard:ketra_elite_guard:1:0;ketra_elite_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.
HF is offline  
Old 11.10.2006, 10:18   #12
hater
Архивный участник
 
Join Date: Aug 2006
Posts: 28
Default

great work.
really big thnx for it.

//rus
Извини, если своим постом испортил топик
Но работа действительно заслуживает уважения.
Могу удалить.
hater is offline  
Old 11.10.2006, 11:19   #13
Dainishi
Архивный участник
 
Join Date: Aug 2006
Posts: 7
Default

Thanks HF..Really great and hard work!!!
Dainishi is offline  
Old 11.10.2006, 13:00   #14
Drag
Архивный участник
 
Join Date: Mar 2006
Posts: 241
Default Optimize Database

Credits to Shawnmb.

Defragment
Code:
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
Code:
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
Code:
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.loc-online.com/f...read.php?t=930
Drag is offline  
Old 11.10.2006, 15:40   #15
sys[antaris]
Архивный участник
 
Join Date: May 2005
Posts: 73
Default

add to post #2 if know fix this:
https://postpacific.loc-online.com/f...09&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?
sys[antaris] is offline  
Old 11.10.2006, 17:22   #16
MuNLoK
Архивный участник
 
Join Date: Sep 2005
Posts: 255
Default

Good job HF, really good job.
MuNLoK is offline  
Old 11.10.2006, 20:05   #17
Nevyn
Архивный участник
 
Join Date: Sep 2006
Posts: 114
Default

Quite nice HF. I encourge you to continue =)
Nevyn is offline  
Old 11.10.2006, 20:09   #18
mastery
Архивный участник
 
Join Date: Feb 2005
Posts: 159
Default

please dont flame this topic to 20+ pages.. just fixes! moder please delete all useless posts from this tread, and thanks to contributors.
mastery is offline  
Old 11.10.2006, 22:46   #19
TheOrder
Архивный участник
 
Join Date: Sep 2005
Posts: 731
Default

Quote:
Originally Posted by mastery View Post
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 !
TheOrder is offline  
Old 12.10.2006, 04:49   #20
Kenjiro
Архивный участник
 
Join Date: Apr 2006
Posts: 120
Default

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.
Kenjiro is offline  
Old 12.10.2006, 06:00   #21
KTPSMF
Архивный участник
 
Join Date: Oct 2005
Posts: 367
Default

nice job
KTPSMF is offline  
Old 02.11.2006, 14:57   #22
Marlon
Архивный участник
 
Join Date: Mar 2006
Posts: 51
Default

=)

you're my hero aEUHAEu
Marlon is offline  
Old 03.11.2006, 16:20   #23
Shawnmb
Архивный участник
 
Join Date: Feb 2005
Posts: 307
Default

Quote:
Originally Posted by Kenjiro View Post
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
Shawnmb is offline  
Old 07.11.2006, 17:23   #24
kgptzac
Архивный участник
 
Join Date: Jan 2006
Posts: 363
Default

very nice... this thread should be archived.
kgptzac is offline  
Old 13.11.2006, 13:07   #25
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default

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 байт
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:08.