running POL 97

Here you can post threads requesting help on the official POL Ultima Online Emulator Core 097.
Note: Core 097 is no longer officially supported.

Moderator: POL Developer

Post Reply
MadBoi
New User
Posts: 4
Joined: Sun Dec 28, 2008 7:25 pm

running POL 97

Post by MadBoi »

hey guys im pretty new was running POL 95 for a while thought i would update =),

everytime i try to run POL 97 it doesnt start and stops at a checkpoint with errors,

checkpoint: load_vitals_cfg
checkpoint: load_vitals_cfg: load_packed_cfgs
Error loading script pkg/systems/attributes/hooks/vitalInit.ecl: bad magic value '/*'
Unable to read script 'pkg/systems/attributes/hooks/vitalInit.ecl'
Error reading script pkg/systems/attributes/hooks/vitalInit.ecl
Error reading configuration file pkg/systems/attributes/config/vitals.cfg:
Export Script pkg/systems/attributes/hooks/vitalInit.ecl not found
Element: Vital Life, found on line 28
Server Shutdown: load_vitals_cfg: load_packed_cfgs
Execution aborted due to: Configuration file error



can anybody please help me?

thanx
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: running POL 97

Post by Yukiko »

First thing to recommend is delte all ECL, DEP and LST files and make sure you recompile ALL scripts.

Also, I guess even before my first recommendation, I should point out that almost all scripts compatible with 0.95 are not directly compatible with POL 0.97 without converting them. See corechanges.txt for hints at what needs to be changed. There's a LOT of things to change so you might want to consider getting the 0.97 Distro and start using that. It is still a work in progress but atleast the main functions are there such as spell cassting and skill gain system.
MadBoi
New User
Posts: 4
Joined: Sun Dec 28, 2008 7:25 pm

Re: running POL 97

Post by MadBoi »

k i deleted all those files recompiled and still came up with same error... bad magic value?

and im not using any 95 scripts i downloaded the 0.97 Distro and im using that =)
MuadDib
Former Developer
Posts: 1091
Joined: Sun Feb 12, 2006 9:50 pm
Location: Cross Lanes, WV

Re: running POL 97

Post by MuadDib »

Error loading script pkg/systems/attributes/hooks/vitalInit.ecl: bad magic value '/*'

Open that src file
pkg/systems/attributes/hooks/vitalInit.src

Something isn't right in the src file. The "/*" is the beginning of a comment block, so that means it must not be getting ended somewhere? I only see two sets of comments in that file that use /* to begin them. So go open that file, and delete the first 13 lines. After doing that, the FIRST line should read:
use uo;

After that, recompile all your scripts again and let us know. :)
MadBoi
New User
Posts: 4
Joined: Sun Dec 28, 2008 7:25 pm

Re: running POL 97

Post by MadBoi »

yep went into the file deleted first 13 lines recompiled all scripts but now it has a new bad magic value,

checkpoint: load_vitals_cfg
checkpoint: load_vitals_cfg: load_packed_cfgs
Error loading script pkg/systems/attributes/hooks/vitalInit.ecl: bad magic value 'us'
Unable to read script 'pkg/systems/attributes/hooks/vitalInit.ecl'
Error reading script pkg/systems/attributes/hooks/vitalInit.ecl
Error reading configuration file pkg/systems/attributes/config/vitals.cfg:
Export Script pkg/systems/attributes/hooks/vitalInit.ecl not found
Element: Vital Hits, found on line 28
Server Shutdown: load_vitals_cfg: load_packed_cfgs
Execution aborted due to: Configuration file error

so same error but still the first line =/, mayb theres somethin goin wrong somewhere else causing it?, i might just go back using POL 95
MuadDib
Former Developer
Posts: 1091
Joined: Sun Feb 12, 2006 9:50 pm
Location: Cross Lanes, WV

Re: running POL 97

Post by MuadDib »

095?? NOOO :D

Ok, paste the SRC file into this post for me, we WILL find and fix this, hehehe.

Also, first, try DELETING the file, and replacing it with a fresh copy from the zip file or SVN either one.

*awaits next report*
MadBoi
New User
Posts: 4
Joined: Sun Dec 28, 2008 7:25 pm

Re: running POL 97

Post by MadBoi »

i have tried deleting it and pasted a fresh copy from the .zip, still same prob :P
hope we find a fix *fingers crossed*
so here it is:

use uo;
use util;

include ":attributes:attributes";
include ":brainAI:npcUtil";

program Install()
print("INSTALLING: Exported Vital - RegenRate and MaxValue functions ...");
return 1;
endprogram

// *****
// Hit Point Functions
// *****
exported function GetHitsRegenRate(mobile)
var base_regen := CInt(AP_GetSettingsCfgElem("Regen").Hits) * 100;

return base_regen + AP_GetVitalRegenRateMod(mobile, "hits");
endfunction

exported function GetHitsMaximumValue(mobile)
var vital_points := GetNPCVitalSetting(mobile, "HITS");
if ( !vital_points )
vital_points := GetAttribute(mobile, "Strength") * 100;
endif

return vital_points;
endfunction

// *****
// Mana Functions
// *****
exported function GetManaRegenRate(mobile)
var base_regen := CInt(AP_GetSettingsCfgElem("Regen").Mana) * 100;

return base_regen + AP_GetVitalRegenRateMod(mobile, "mana");
endfunction

exported function GetManaMaximumValue(mobile)
var vital_points := GetNPCVitalSetting(mobile, "MANA");
if ( !vital_points )
vital_points := GetAttribute(mobile, "Intelligence") * 100;
endif

return vital_points;
endfunction

// *****
// Stamina Functions
// *****
exported function GetStaminaRegenRate(mobile)
var base_regen := CInt(AP_GetSettingsCfgElem("Regen").Stamina) * 100;

return base_regen + AP_GetVitalRegenRateMod(mobile, "stamina");
endfunction

exported function GetStaminaMaximumValue(mobile)
var vital_points := GetNPCVitalSetting(mobile, "STAM");
if ( !vital_points )
vital_points := GetAttribute(mobile, "Dexterity") * 100;
endif

return vital_points;
endfunction

// *****
// Hunger Functions
// Note: This vital is not linked to any attributes.
// *****
exported function GetHungerRegenRate(mobile)
var base_regen := CInt(AP_GetSettingsCfgElem("Regen").Hunger) * 100;

return base_regen + AP_GetVitalRegenRateMod(mobile, "Hunger");
endfunction

exported function GetHungerMaximumValue(mobile)
var vital_points := GetNPCVitalSetting(mobile, "HUNGER");
if ( !vital_points )
vital_points := 100*100; // '100' points.
endif

return vital_points;
endfunction



// *****
// Private Function for NPC stuff
// *****
function GetNPCVitalSetting(mobile, vital)
if ( !mobile.npctemplate )
return 0;
endif

var value := 0;

// CProp used if NPC had dice settings - so they dont change over and over.
var vital_settings := GetObjProperty(mobile, "%NPC_Vitals%");

if ( vital_settings.Exists(vital) )
value := CInt(vital_settings[vital]);
else
// No prior setup took place - get information from the npcdesc.cfg
var npc_cfg := NPC_GetNPCConfig(mobile.npctemplate);
value := GetConfigString(npc_cfg, vital);

if ( !value )
return 0;
endif

if ( value["d"] ) // Dice
value := RandomDiceRoll(value);
if ( Lower(TypeOf(vital_settings)) != "dictionary" )
vital_settings := dictionary;
endif
vital_settings[vital] := CInt(value);
SetObjProperty(mobile, "%NPC_Vitals%", vital_settings);
else
value := CInt(value);
endif
endif

return (value * 100);
endfunction
Pierce
Forum Regular
Posts: 420
Joined: Thu Feb 02, 2006 8:33 am

Re: running POL 97

Post by Pierce »

Did you try deleting those

Code: Select all

// *****
lines? Perhaps the compiler has problems with these even if there is a space between the / and the *. It does compile in my case but i don't know if the server gives this error, cause i didn't compile the whole distro ;)
Post Reply