PenUltima Online

It is currently Thu Aug 28, 2008 8:07 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 37 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Funny error!
PostPosted: Sat Jun 17, 2006 10:28 am 
Offline

Joined: Sat Mar 18, 2006 1:41 am
Posts: 92
Location: World Earth
I have copied a server 095 on 096 version, and have started. The beginnings testing, and here one of mistakes which I cannot understand, it when I press on какуе a thing, to me writes "You must wait to use something again". I don't know, what script can use this function, and I'm don't know how fix it. I'm use scripts of Zulu Hotel Scandinavia. If you know, and can, help me please. Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 17, 2006 12:04 pm 
Offline

Joined: Sat Mar 18, 2006 1:41 am
Posts: 92
Location: World Earth
Have been fixed! Thank all for viewing this topic! :)


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 17, 2006 12:24 pm 
Offline
POL Core Developer

Joined: Mon Jan 30, 2006 9:28 am
Posts: 292
Location: Germany, Bavaria
and how did u solved it?

we love requests like this and closed using such statements without public solution... maybe someone else gets in trouble with same problem and could learn using your posted solution?

Shinigami


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 17, 2006 12:42 pm 
Offline

Joined: Sat Mar 18, 2006 1:41 am
Posts: 92
Location: World Earth
Oh, off course! My problem have been fixed at hooks/shilSkill ; hooks/newParry & hooks/newCombat.

That was my error when. I destroy title "exported" at all functions, because there was AwardPoint, - this is not right(error is: "Function AwardPoints: Parameter gainrate was not passed, and there is no default.
")! Must be "AwardRawSkillPoints". And, when I fix this, every thing is now all right! :)


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 17, 2006 12:51 pm 
Offline
POL Core Developer

Joined: Mon Jan 30, 2006 9:28 am
Posts: 292
Location: Germany, Bavaria
thx


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 18, 2006 12:22 pm 
Offline

Joined: Sat Mar 18, 2006 1:41 am
Posts: 92
Location: World Earth
To not create new topic, I have decided to write in this. My problem here in what. When I create spellbook(with spells, or when I insert some spells) spellbook shows me one spell "Clumsy" at many many cells down. I don't know, why it, and I need your help!


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 18, 2006 5:47 pm 
Offline

Joined: Sat Feb 04, 2006 5:49 pm
Posts: 744
Location: Chicago, IL USA
Find which itemdesc.cfg contains the entry for your spellbook. The entry should be something like:

Code:
Container 0x0EFA


change it to

Code:
Spellbook 0x0EFA


and add within the entry's braces

Code:
Spelltype         magic


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 18, 2006 11:49 pm 
Offline

Joined: Sat Mar 18, 2006 1:41 am
Posts: 92
Location: World Earth
Oh, great! Thanks, but I have new error!
Problem is big. When I clicked on spell, and when I get some weapon, this weapon is not blocking this spell, but must! Mana not down, words not say, and I'm cast any spell at one second! I have look for what script is working at spells and it is scroll.src(at Zulu Hotel directory opt/zulumagic/scroll.src) and look please, why it work at spellbook not correctly?!

Code:
use uo;
use os;
use cfgfile;

include "include/client";
include "include/attributes";
include "getspellid";

program use_scroll( who, scroll )

   var shp := GetHp(who);
   var sx := who.x;
   var sy := who.y;
   var sz := who.z;
   var smana := GetMana(who);

   set_critical( 1 );
   if (!scroll.amount)
      return;
       endif

   if(!ReserveItem(scroll)) return; endif

        var spellid := GetSpellId( scroll );
   if (manacost(who,spellid) > GetMana(who))
      PrintTextAbovePrivate(who,"Not enough mana!",who);
      return;
   endif

   if (GetEffectiveSkill(who,SKILLID_MAGERY) < (GetSpellDifficulty( spellid ) - 20) )
      PrintTextAbovePrivate(who,"Not a chance...",who);
      return;
   endif

   SpeakPowerWords( who, spellid );

   var loop := CInt((spellid + 7) / 8 * 500);
   PerformAction(who,ANIM_CAST_DIR);

   while ( loop > 500)
      loop := loop - 1000;
      sleep(1);
      if ((GetHp(who) < shp ) && (smana>70))
         SendSysMessage( who, "Your were interrupted while casting!");
         PlayObjectCenteredEffect(who, 0x3735, 7, 7);
         PlaySoundEffect(who, 0x05b);
         return;
      endif
/*
      if (who.x != sx or who.y != sy or who.z != sz)
         SendSysmessage( who , "You've lost your concentration!" );
         PlayObjectCenteredEffect(who, 0x3735, 7, 7);
         PlaySoundEffect(who, 0x05b);
         return;
      endif
*/
   endwhile

   sleepms(loop);
   if ((GetHp(who) < shp ) && (smana>70))
      SendSysMessage( who, "Your were interrupted while casting!");
      PlayObjectCenteredEffect(who, 0x3735, 7, 7);
      PlaySoundEffect(who, 0x05b);
      return;
   endif

/*
   if (who.x != sx or who.y != sy or who.z != sz)
      SendSysmessage( who , "You've lost your concentration!" );
      PlayObjectCenteredEffect(who, 0x3735, 7, 7);
      PlaySoundEffect(who, 0x05b);
      return;
   endif
*/
   if (CanReadScroll(who))
   if (CheckSkill( who, SKILLID_MAGERY, GetSpellDifficulty(spellid)-20, 0 ) )
           if ( ConsumeMana( who, spellid ) )
              Detach();
         SubtractAmount( scroll, 1 );
                   StartSpellEffect( who, spellid );
         return;
      endif
   endif
   endif

   PlaySoundEffect(who,0x005d);
   PlayObjectCenteredEffect(who, 0x3735,10, 30);

endprogram

function CanReadScroll(me)

   var cfg := ReadConfigFile(":combat:itemdesc");
   var item;
   var circle := 2;

   var theweapon := GetEquipmentByLayer( me,  LAYER_HAND1   );
   var theweapon2 := GetEquipmentByLayer( me,  LAYER_HAND2   );

   if ((!theweapon) && (!theweapon2))
      return 1;
   endif

   var weapon1 := cfg[theweapon.objtype].blocksCastingIfInHand;
   var weapon2 := cfg[theweapon2.objtype].blocksCastingIfInHand;

   if (weapon1==0 && !theweapon2)
   return 1;
   elseif (weapon2==0 && !theweapon)
   return 1;
   elseif (weapon1==0 && weapon2==0)
   return 1;
   endif

   PrintTextAbovePrivate(me,"Your hands must be free to use that!",me);
   return 0;

endfunction

function manacost(me,spellid)

   var cfg := ReadConfigFile(":spells:spells");
   var circle := cfg[ spellid ].circle;
   cfg := ReadConfigFile("::circles");
   return CInt(cfg[ circle ].mana);

endfunction


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 19, 2006 12:35 am 
Offline

Joined: Sat Feb 04, 2006 5:49 pm
Posts: 744
Location: Chicago, IL USA
You didnt read the 096 changelog then...

Code:

   Added: Extra 'spell_id' parameter is now passed to spell scripts which relates to
      'SPELLID' in the spell's entry in '::spells.cfg'.

      Example:
         use uo;
         program spellscript( who, spell_id )
            SendSysMessage(who, "Casting SPELLID# " + CStr(spell_id));
            // "Clumsy" has spell_id = 1, "Create Food" = 2, etc..
         endprogram

Changed: Casting from the default spellbook:
               * It no longer checks if you are dead, says the words of power,
                 performs the animations, checks for free hands, performs a
                 skill check, does any delaying at all or checks for
                 or consumes mana or reagents.
                 All these things must now be handled in scripts.

                 This should allow greater flexibility and also
                 simplicity in spell systems and scripts.


thats a cut-up and pasted version of the changelog all put together so its better understood.

Thats a MUST to go through and make sure your scripts are up to date. Many wierd and different things will happen if you dont look at everything in the changelog and figure out what that means for your scripts.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 19, 2006 3:05 am 
Offline

Joined: Sat Mar 18, 2006 1:41 am
Posts: 92
Location: World Earth
Oh, yes! I didn't read change log, and this is my error. Thanks, but I'm not realy understand, what I have to do. I mean, at all scripts of spells I must add:

Code:
use uo;
         program spellscript( who, spell_id )
            SendSysMessage(who, "Casting SPELLID# " + CStr(spell_id));
            // "Clumsy" has spell_id = 1, "Create Food" = 2, etc..
         endprogram


that or at scroll.src.

I'm very sorry for that's stupid post, and my questions because I'm not master scripter, I'm Novice! :) Thank you!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 19, 2006 11:28 pm 
Offline

Joined: Sat Feb 04, 2006 5:49 pm
Posts: 744
Location: Chicago, IL USA
its better to make a starter script and change your spells to go through that starter script, then add another entry in your config to where the actual spell script is. This way, the core starts the starter script, you can do everything there that you have to do (all of the checks. The function I posted was an example of only 1 addition, not everything that was removed from the core. You'll have to script that out) then afterwards, use start_script and grab the scriptname out of the config entry for the spell. You can start to see what I'm trying to say if you go through the distro development in the top forum, look up their magery package at the script called "SpellStarter.src". It might actually do more than needed but doing more is better than nothing.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 21, 2006 8:47 am 
Offline

Joined: Sat Mar 18, 2006 1:41 am
Posts: 92
Location: World Earth
Oh... To many things and to hard! I have edit this problem too ease! I have add:

Code:
//MY CHANGES
                if( TryToCast( caster, SPELLID_[b]SPELL[/b] ) != SUCCESS )
         EraseObjProperty( caster, "#Casting" );
         return;
      endif
//END OF MY CHANGES
//addd these lines after caster:=parms in that if/else

thoose lines, and my problem has disappeared. But, thank you for help! If I will be have some problem, I'll post it at my topic. Thanks all!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 21, 2006 10:18 pm 
Offline

Joined: Sat Mar 18, 2006 1:41 am
Posts: 92
Location: World Earth
Hey! :) Hallo all! :lol: I have new error, but, I don't know, how it has arisen. When I start pol, with scripts is all right, but, right at the end, there is:

Code:
Couldn't find an Armor Zone for layer 0
error in objtype 1bca package combat
Server Shutdown: load_itemdesc
Execution aborted due to: Data file error


What it mean, I don't know :( Please, help!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 22, 2006 5:22 am 
Offline

Joined: Fri Feb 03, 2006 6:32 am
Posts: 104
Location: Austria
Harley wrote:
Hey! :) Hallo all! :lol: I have new error, but, I don't know, how it has arisen. When I start pol, with scripts is all right, but, right at the end, there is:

Code:
Couldn't find an Armor Zone for layer 0
error in objtype 1bca package combat
Server Shutdown: load_itemdesc
Execution aborted due to: Data file error


What it mean, I don't know :( Please, help!


armor zone? I guess it's refering to the item layer.
Each Item equipable will be equiped to a certain layer on your character.. e.g. Helmets are put on Layer 6, Body armor on layer 17 afaik. For each layer there's a corresponding entry in /config/armrzone.cfg - likely you're missing that, but layer 0 is definitely the wrong layer for armor....

see here:
http://www.welt-pergon.de/poldoc/configfiles.php#armrzone.cfg

I've sadly got no complete list of which layer is which here.... but maybe someone else can help with that.

_________________
[url=www.etheria.org]
Etheria - Roleplaying Realism
Image [/url]


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 22, 2006 6:46 am 
Offline
User avatar

Joined: Sun Feb 05, 2006 5:24 am
Posts: 30
Harley wrote:
Hey! :) Hallo all! :lol: I have new error, but, I don't know, how it has arisen. When I start pol, with scripts is all right, but, right at the end, there is:

Code:
Couldn't find an Armor Zone for layer 0
error in objtype 1bca package combat
Server Shutdown: load_itemdesc
Execution aborted due to: Data file error


What it mean, I don't know :( Please, help!


If you're running on pol096 then after using uoconvert you must copy multis.cfg, tiles.cfg and landtiles.cfg to your %poldir%/config/ .

_________________
<uninitialized object>


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 22, 2006 7:48 am 
Offline

Joined: Sat Mar 18, 2006 1:41 am
Posts: 92
Location: World Earth
Firedancer, thank you too, but AsYlum have told right(thank you)! This error have been, because I have no uoconvert my multis, tiles & landtiles .cfg Thanks, but! I have got new error!

I have script, that is spawnet. And, at my console, he got me error.
Look please:

Code:
Runaway script[178]: pkg/systems/spawnet/bloodremover.ecl (60000 cycles)
31: Func(2,0): ListObjectsInBox
32: initforeach @46
33: local #1
34: get member id 'objtype' (4)
35: local #0
>36: in
37: local #1
38: get member id 'decayat' (22)
39: Func(2,1): ReadGameClock
40: <=
41: &&


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 22, 2006 12:37 pm 
Offline

Joined: Sat Feb 04, 2006 5:49 pm
Posts: 744
Location: Chicago, IL USA
Look a few lines into your script for a ListObjectsInBox(). Its probably in a foreach loop. Just add a sleepms(5) there or something to stop that. Its not really an error, its more of a warning that your script is running extremely long without resting so POL can go to other scripts and pay attention to them.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 23, 2006 12:00 am 
Offline

Joined: Sat Mar 18, 2006 1:41 am
Posts: 92
Location: World Earth
CWO, big thanks! It is realy help! But, I have new error. Look please:
Code:
[06/23 10:55:28] [pkg/speechhook/TruePspeech.ecl]: 880000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
[pkg/speechhook/TruePspeech.ecl]: ae00600101010101010003b200035255530053797374656d0000000000000000000000000000000000000000000000000055006e006b006e006f0077006e00200063006f006d006d0061006e0064003a0020002e00610064006d0069006e0000


I'm very scary when I saw this error! :roll:


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 23, 2006 1:21 am 
Offline
POL Core Developer

Joined: Mon Jan 30, 2006 9:28 am
Posts: 292
Location: Germany, Bavaria
Harley wrote:
I'm very scary when I saw this error!

which error? looks like a print/syslog of a packet... that's all. u've just to remove this logging-command from script...

Shinigami


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 23, 2006 11:10 pm 
Offline

Joined: Sat Mar 18, 2006 1:41 am
Posts: 92
Location: World Earth
Shini, bigest thank you! There are was syslog(newpacket), and this were scary me! :) Thanks, if some thing were scary me, I'll post here!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 19, 2006 12:45 pm 
Offline

Joined: Sat Mar 18, 2006 1:41 am
Posts: 92
Location: World Earth
New interesting error. I have re-writing my shard to 097 core, and, I have a problem with my guilds scripts. Script is: WebSiteTimers. When I compile it, there are error:

Code:
Token '(' cannot follow token 'ListGuilds'
Function ListGuilds() is not defined.
Error compiling statement at C:\pol097~1\pkg\items\guilds~1\websiteTimers.src, Line 146
Error in function 'Guilds', File: C:\pol097~1\pkg\items\guilds~1\websiteTimers.src, Line 146
Error in function 'Guilds'.

Line 146 is:   
foreach guild in ListGuilds()


When I add new module *use guilds;* I have a new error.

Look:

Code:
Error in USE statement: Expected identifier, got 'User Function guilds'
Error compiling statement at C:\pol097~1\pkg\items\guilds~1\websiteTimers.src, Line 3
Compilation Error:
Near: use guilds;
File: C:\pol097~1\pkg\items\guilds~1\websiteTimers.src, Line 3

This is very fun because modules look:

use uo;
use os;
use guilds;


I don't know how fix this error and I ask u for help.

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 19, 2006 1:51 pm 
Offline

Joined: Thu Feb 02, 2006 8:33 am
Posts: 271
I don't know what your script look like, but did you perhaps have a function call "guilds" in it? If so, rename that function. If not perhaps you can post the script cause more people can help you finding the error then.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 19, 2006 8:51 pm 
Offline

Joined: Sat Feb 04, 2006 5:49 pm
Posts: 744
Location: Chicago, IL USA
Quote:
Error in function 'Guilds',


yep. Rename the function and the calls to the function.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 19, 2006 11:47 pm 
Offline

Joined: Sat Mar 18, 2006 1:41 am
Posts: 92
Location: World Earth
Pierce & CWO thank you, guys! I have renamed this function and it's all right now! Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 24, 2006 8:57 am 
Offline

Joined: Sat Mar 18, 2006 1:41 am
Posts: 92
Location: World Earth
Hm... I don't know, what is this, and I need your help. I have re-change Pol Core for 096 to 097. Compile all scripts and, when I start server, after this lines:

Code:
Startup script complete.
Initialization complete.  POL is active.  Ctrl-C to stop.

Listening for HTTP requests on port 5002
Starting: Guild Timers Off


I have error.

Code:
Starting: SpawnNet
error{ errortext = "Access denied" }
Starting: Ore Server


And this mistake is written each 3 minutes!

Code:
Starting: GuildManager Loaded
sysload=1 (2) cputime=120173
scpt: 4570  task: 62(2)  scin: 40349  scsl: 106967  MOB: 0  TLI: 251
sysload=0 (0) cputime=0
scpt: 2495  task: 60  scin: 2531  scsl: 59942  MOB: 0  TLI: 251
error{ errortext = "Access denied" }
sysload=0 (0) cputime=0
scpt: 1773  task: 60  scin: 1827  scsl: 42596  MOB: 0  TLI: 251
sysload=0 (0) cputime=0
scpt: 1797  task: 60  scin: 1834  scsl: 43189  MOB: 0  TLI: 251
error{ errortext = "Access denied" }
sysload=0 (0) cputime=0
scpt: 2789  task: 60  scin: 2840  scsl: 66983  MOB: 0  TLI: 251
sysload=0 (0) cputime=0
scpt: 4125  task: 60  scin: 4159  scsl: 95050  MOB: 0  TLI: 250
error{ errortext = "Access denied" }
sysload=0 (0) cputime=0
scpt: 2792  task: 60  scin: 2845  scsl: 64261  MOB: 0  TLI: 250
sysload=0 (0) cputime=20029
scpt: 1298  task: 60  scin: 1337  scsl: 29913  MOB: 0  TLI: 250
error{ errortext = "Access denied" }


But, I don't know what is this error and from where it has undertaken. Because at pol 096(not 096.1), it was not!

At pol 096 at console there are:

Code:
Starting: SpawnNet
Starting: Ore Server


Thanks!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 37 posts ]  Go to page 1, 2  Next

All times are UTC - 8 hours


Who is online

Users browsing this forum: Google [Bot] and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl