Search for a Scripter

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.
Pierce
Forum Regular
Posts: 420
Joined: Thu Feb 02, 2006 8:33 am

Re: Search for a Scripter

Post by Pierce »

What does ecompile says if you compile scripts/NPCKeeper.src?
It sounds that you use an .em command with the wrong parameter size and ecompile
should state that if you have the correct .em files.
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Re: Search for a Scripter

Post by CWO »

Whenever you change the core exe file, you have to replace all files with the ones that came with the core, then you MUST delete all .ecl files (compiled scripts) in your POL path and then recompile all scripts. Just replacing files and running ecompile will do nothing. You have to delete all .ecl files before recompiling to make sure the scripts are recompiled correctly for the different core.
User avatar
Karmael
Neophyte Poster
Posts: 33
Joined: Sun Mar 02, 2008 6:03 pm

Re: Search for a Scripter

Post by Karmael »

that worked thanks!

I missed reading that part in the how to document.
User avatar
ncrsn
Grandmaster Poster
Posts: 255
Joined: Fri Feb 10, 2006 12:15 am

Re: Search for a Scripter

Post by ncrsn »

Yet another side note, recompiling all stuff can be done using ecompile with f-flag ("ecompile -f"), which forces the operation even when source file itself hasn't changed. It's often faster than searching and deleting every .ecl file.
User avatar
Karmael
Neophyte Poster
Posts: 33
Joined: Sun Mar 02, 2008 6:03 pm

Re: Search for a Scripter

Post by Karmael »

ncrsn wrote:Yet another side note, recompiling all stuff can be done using ecompile with f-flag ("ecompile -f"), which forces the operation even when source file itself hasn't changed. It's often faster than searching and deleting every .ecl file.
Thanks :) There wasn't really all that much in there since I started fresh.

next question. I've set the server.cfg with my ip and port # and directed the path to point to my uo file, however I can't log in.

I can see myself logging in, but I don't move forward from the login screen for uo.

Also I see this a lot in the pol.log

[pkg/systems/spawnregion/spawnRegionManager.ecl]: Exceeded max tries. Region = briggand fort, npc = brigand1

What does that mean?
User avatar
Karmael
Neophyte Poster
Posts: 33
Joined: Sun Mar 02, 2008 6:03 pm

Re: Search for a Scripter

Post by Karmael »

I was able to log in. I forgot to change the "none" in the pol.cfg to the client #.
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Re: Search for a Scripter

Post by CWO »

Karmael wrote: [pkg/systems/spawnregion/spawnRegionManager.ecl]: Exceeded max tries. Region = briggand fort, npc = brigand1

What does that mean?
In that script there is a syslog command that says that sentence. Just open the .src and search for Exceeded max tries. What is probably happening is that the spawner is trying to pick a random location within its range to spawn an NPC. If the spawning fails, it tries another location, and another, until it reaches the max tries. It then gives up and prints out that warning. Most likely its a completely intended thing in the script and I wouldn't recommend trying to change the script in this situation. You might want to look over that spawn and see if you can change it to something more manageable for the script.
User avatar
Karmael
Neophyte Poster
Posts: 33
Joined: Sun Mar 02, 2008 6:03 pm

Re: Search for a Scripter

Post by Karmael »

alright thanks, you all have been helpful.
User avatar
Karmael
Neophyte Poster
Posts: 33
Joined: Sun Mar 02, 2008 6:03 pm

and yet... another question re: adding scripts

Post by Karmael »

Now that I've got it up and running, how do I add scripts? I know some of them will need to be updated.

I tried adding a new script, and recompile but nothing happened.

Is there instructions for this step?
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Re: Search for a Scripter

Post by CWO »

Depends on what you want to do with this new script and how you want it triggered. You can always add new scripts at any time. If you want a .command, add it to the textcmd or commands directory under the cmdlevel you want it to be in. If you want the script to be triggered when you use an item put the script in a package or in the scripts/items folder, modify your itemdesc.cfg where the item's use script is to point to that script... ect.. You would have to tell us exactly how you're using it before we can give specific instructions.
User avatar
Karmael
Neophyte Poster
Posts: 33
Joined: Sun Mar 02, 2008 6:03 pm

Re: Search for a Scripter

Post by Karmael »

oh.... well that would take up lots of room... from what I understand nearly all the scripts I have need to be updated.

Ok.. I will need to go through everything and figure out what's what.

Thanks!
User avatar
Karmael
Neophyte Poster
Posts: 33
Joined: Sun Mar 02, 2008 6:03 pm

how to make the server recognize a custom map

Post by Karmael »

How do I have the server recognize our map? The map files are in my uo folder, however when I log in, I see the osi map and parts of buildings.

Also, if I remove all the regions from the spawner, will it kill out all the spawns?
User avatar
Karmael
Neophyte Poster
Posts: 33
Joined: Sun Mar 02, 2008 6:03 pm

not sure what I did...

Post by Karmael »

In my start.log I get the following error. Not sure how to fix it.

Error reading configuration file pkg/foundations/hooks//attributes.cfg:
Attribute Strength already defined by character (pkg/character/)
Element: Attribute Strength, found on line 18
Server Shutdown: load_attributes_cfg
Execution aborted due to: Configuration file error
User avatar
Sadahar
Adept Poster
Posts: 81
Joined: Mon Dec 03, 2007 11:15 am

Re: Search for a Scripter

Post by Sadahar »

You have the attribute Strength defined more than once.
User avatar
Karmael
Neophyte Poster
Posts: 33
Joined: Sun Mar 02, 2008 6:03 pm

Re: Search for a Scripter

Post by Karmael »

Which file do I take it out of? I believe I tried that and pol still wouldn't start.
User avatar
Sadahar
Adept Poster
Posts: 81
Joined: Mon Dec 03, 2007 11:15 am

Re: Search for a Scripter

Post by Sadahar »

The error text itself says you whats wrong...

Error reading configuration file pkg/foundations/hooks//attributes.cfg:
--> Error in this file.
Attribute Strength already defined by character (pkg/character/)
--> The error. (you've already defined here the attribute Strength)
Element: Attribute Strength, found on line 18
--> Wheres the error.

So, in this file: pkg/foundations/hooks//attributes.cfg, line 18, delete the attribute Strength entry ;)
User avatar
Karmael
Neophyte Poster
Posts: 33
Joined: Sun Mar 02, 2008 6:03 pm

Re: Search for a Scripter

Post by Karmael »

*blushes* I'm sorry.... I thought I had removed it from that one. Must of been from the other one.

Thanks though :)
User avatar
Karmael
Neophyte Poster
Posts: 33
Joined: Sun Mar 02, 2008 6:03 pm

is confused....

Post by Karmael »

It would seem I had duplicates so I deleted them all from the pkg/hooks file... now it says it that... Should I have removed it from pkg/character?


Error reading configuration file pkg/foundations/hooks//attributes.cfg:
Attribute Alchemy already defined by character (pkg/character/)
Element: Attribute Alchemy, found on line 18
Server Shutdown: load_attributes_cfg
Execution aborted due to: Configuration file error

*************

OK.. I found the character file not sure how I missed it.. However I removed all the duplicate entries and I'm still getting the same error, just different item.

Error reading configuration file pkg/foundations/hooks//attributes.cfg:
Attribute ItemId already defined by character (pkg/character/)
Element: Attribute ItemId, found on line 30
Server Shutdown: load_attributes_cfg
Execution aborted due to: Configuration file error
User avatar
Karmael
Neophyte Poster
Posts: 33
Joined: Sun Mar 02, 2008 6:03 pm

Re: Search for a Scripter

Post by Karmael »

well... I *think* I fixed the other errors... but I have a new one now.

Error loading script pkg/character/regen.ecl: Recompile required. Bad version number 3
Unable to read script 'pkg/character/regen.ecl'
Error reading script pkg/character/regen.ecl
Error reading configuration file pkg/character//vitals.cfg:
Export Script pkg/character/regen.ecl not found
Element: Vital Life, found on line 1
Server Shutdown: load_vitals_cfg: load_packed_cfgs
Execution aborted due to: Configuration file error


I did do a recompile and still get the same error.
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Re: Search for a Scripter

Post by CWO »

Either the version of ecompile you're using isn't the one that came with that pol.exe or the script isn't being recompiled correctly. Delete the .ecl file and recompile it then. If you're getting the same error, you need to make sure the ecompile.exe and all of the .em files are from that exact pol.exe. Also make sure you don't have 2 of the same .em file (sometimes one will be in pol/scripts and another will be in pol/scripts/module)
User avatar
Karmael
Neophyte Poster
Posts: 33
Joined: Sun Mar 02, 2008 6:03 pm

Re: Search for a Scripter

Post by Karmael »

now I get this...

Warning! pkg/character/regen.ecl does not exist!
Exception caught while loading script pkg/character/regen.ecl: Unable to open pkg/character/regen.ecl for reading.
Unable to read script 'pkg/character/regen.ecl'
Error reading script pkg/character/regen.ecl
Error reading configuration file pkg/character//vitals.cfg:
Export Script pkg/character/regen.ecl not found
Element: Vital Life, found on line 1
Server Shutdown: load_vitals_cfg: load_packed_cfgs
Execution aborted due to: Configuration file error
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Re: Search for a Scripter

Post by CWO »

Warning! pkg/character/regen.ecl does not exist!

recompile regen.src so that regen.ecl will exist...
User avatar
Karmael
Neophyte Poster
Posts: 33
Joined: Sun Mar 02, 2008 6:03 pm

Re: Search for a Scripter

Post by Karmael »

I removed that file and recompiled.. and it didn't work.
User avatar
Sadahar
Adept Poster
Posts: 81
Joined: Mon Dec 03, 2007 11:15 am

Re: Search for a Scripter

Post by Sadahar »

You must be getting ecompile errors... i think thats the first script checked when running pol... check if you have any script compiled :S
User avatar
Karmael
Neophyte Poster
Posts: 33
Joined: Sun Mar 02, 2008 6:03 pm

Re: Search for a Scripter

Post by Karmael »

Is there somewhere else I should be looking for errors? That's the only error that comes up.
Post Reply