PDA

View Full Version : [SOLVED] HTML Caching Error


krapno
15.06.2005, 14:21
i got this error loading L2Server.exe

HTML Cache Start
[htmlcache.cpp][116] HTML Caching : First ReadFileEx Failed(38)
[htmlcache.cpp][16] GetLastError = Une opération d'entrée/sortie avec chevauchement est en cours d'exécution.
All HTML cached

:shock:

EntroX
15.06.2005, 15:03
Did you edit any html lateley?, thats what should be causing the error you are having.

Yours.
EntroX

krapno
15.06.2005, 15:17
yes, i am working on custom NPC atm, and that NPC doesn't display HTML i have to display... i check again my *.htm but all seems ok :/

EntroX
15.06.2005, 15:59
Did you add a html file?, if you did try opening the server without having it into your HTML folder.

Yours.
EntroX

BiGBoY
15.06.2005, 16:51
add to Entrox answer...
U can add html later when the server is running to check if it works.
All u need to do is disable html caching on l2server and click ingame on that npc which require ur new html.
The server should respond with uncached html and if u did all as it should be in ur html the game will open the chat window. If not there is a big chance of client crash or it the chat window will just wont popup.

krapno
15.06.2005, 21:55
Here my sources:

ai.obj
class merchant_for_agrade : default_npc
parameter_define_begin
string fnHi "black_merchanta001.htm"
string fnNotEnoughCrystal "black_merchanta100.htm"
parameter_define_end
handler 3 // TALKED
variable_begin
"talker"
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end

shift_sp 1
push_event // talker
push_const 32
add
fetch_i
push_parameter fnHi
func_call 43 // func[ShowPage]
shift_sp -2
shift_sp -1
handler_end
class_end

class chiron : merchant_for_agrade
class_end

black_merchanta001.htm
<html><head><body>Tallum Helmet

Physical Defense: 69

Price: Alphabets
<font color="LEVEL">T</font> -
<font color="LEVEL">A</font> -
<font color="LEVEL">L</font>
Class B Crystal: 2000 and Class A Crystal: 1000



Would you like to purchase this item?







<center><a action="bypass -h menu_select?ask=-9&reply=1">OK
</a><a action="link chiron001t.htm">Cancel</a>

</center></body></html>

black_merchanta100.htm
<html>
<body>

You do not have enough crystals to purchase this item.
</body>
</html>

npcdata.txt
npc_begin citizen 9000 [chiron] level=70 exp=4296345xx.xx5 acquire_exp_rate=8.24439 undying=1 can_be_attacked=0 acquire_sp=1950 race=human sex=female temper=100 safe_height=100 org_jump=15 skill_list={@s_full_magic_defence} magic_list={} max_item=80 item_make_list={} corpse_make_list={} additional_make_list={} additional_make_multi_list={} slot_chest=[] slot_rhand=[] slot_lhand=[] base_attack_type=fist base_can_penetrate=0 base_attack_range=40 base_damage_range={0;0;80;120} base_rand_dam=30 str=40 int=21 dex=30 wit=20 con=43 men=10 hp_increase=40 mp_increase=7 org_hp_regen=7.5 org_mp_regen=2.7 ground_low={80;0;10} ground_high={120;-30;30} underwater_low={50;0;10} underwater_high={0;0;30} fly_low={0;0;10} fly_high={0;-30;30} float_low={0;0;10} float_high={0;-30;30} org_earshot=100 sight={0;0;2500;120;5} agro_range=1000 org_hp=999999 org_mp=999999 base_defend=999999 base_magic_attack=999999 base_magic_defend=999999 base_physical_attack=999999 physical_hit_modify=99 physical_avoid_modify=999 base_attack_speed=999 base_reuse_delay=0 base_critical=99 magic_use_speed_modify=999 status={normal} align=-4900 collision_radius=8 collision_height=25.3 category={} clan={} clan_help_range=300 guild={} pledge={} pledge_leader=0 alliance={} alliance_leader=0 ignore_clan_list={} ruler=0 ruling_domain={} npc_ai={[chiron];{[fnHi] = [chiron001.htm]}} corpse_time=7 no_sleep_mode=0 npc_end

npc_pch.txt[chiron] = 1009000

I am maybe tired because its late for me but i dont find my error :? maybe tomorrow :roll: tx all

NB: I will try later to set caching html off...

krapno
16.06.2005, 01:32
OMG i saw i have a 0 byte file in my HTML folder (and i cannot delete it from windows, used by process :/) and i saved my new html files as ANSI :shock: fuck i am very tired, i will tell u if it works better after having deleted my 0 byte file and saved all my html as Unicode :wink: cu

BiGBoY
16.06.2005, 02:32
OMG i saw i have a 0 byte file in my HTML folder (and i cannot delete it from windows, used by process :/) and i saved my new html files as ANSI :shock: fuck i am very tired, i will tell u if it works better after having deleted my 0 byte file and saved all my html as Unicode :wink: cu

Here u go mate. A tinny little commandline program which release the process taken by explorer and delete the "locked" file without need to restart computer or to set proper permissions on files/folders.
Enjoy :o

krapno
16.06.2005, 07:34
Good news all works fine now :P
To fix my caching error i just overwrited my 0 byte file in HTML folder by a correct file (BiGBoY ur exe didn't work i had to stop l2server, tx anyway) and to fix my "non html chat display" i just re-saved my custom HTML as UNICODE (and not ANSI)

http://biohazardl2.xlteam.net/screens/agrade_preview_01.jpg

Ty all for ur answer :wink:

EntroX
16.06.2005, 17:22
Nice work, im glad you could make it work.

Wich remids me...i gotta now go and fix the mutisell.txt so dwarves ( dual crafters ) wont crash.

Yours.
EntroX

Digital
16.06.2005, 18:05
good job :) glad u got it working

and thx to bigboy as well for the tool.. helped me delete a couple of silly stuff ;)

krapno
16.06.2005, 18:22
tx guys :)

i will use same model to implement a tattoo trader i think :D
i mean u will have to collect dyes to get Tattoo :wink: