Page 1 of 1

POL097-2006-10-29 RC Coregina - Problem :D

Posted: Mon Nov 27, 2006 9:24 am
by Kirin
Greetings!

I apologize in advance as Im very new to this community I'm unsure of what/how much of the following you need to be helpful, so I will post what will seem to be an inordinate amount of probably useless data !

POL.log

Code: Select all

[11/25 02:34:38] Logfile opened.
POL097-2006-10-29 RC Coregina (VS.NET 2003) compiled on Oct 29 2006 02:41:02 running.
[11/25 03:07:55] Logfile opened.
POL097-2006-10-29 RC Coregina (VS.NET 2003) compiled on Oct 29 2006 02:41:02 running.
[11/25 13:16:52] Logfile opened.
POL097-2006-10-29 RC Coregina (VS.NET 2003) compiled on Oct 29 2006 02:41:02 running.
[11/25 13:16:53] Unable to read script 'pkg/attributes/hooks/vitalInit.ecl'
[11/25 13:18:24] Logfile opened.
POL097-2006-10-29 RC Coregina (VS.NET 2003) compiled on Oct 29 2006 02:41:02 running.
Unable to read script 'pkg/attributes/hooks/vitalInit.ecl'
[11/25 13:37:35] Logfile opened.
POL097-2006-10-29 RC Coregina (VS.NET 2003) compiled on Oct 29 2006 02:41:02 running.
[11/25 14:20:20] Logfile opened.
POL097-2006-10-29 RC Coregina (VS.NET 2003) compiled on Oct 29 2006 02:41:02 running.
[11/25 14:28:21] Logfile opened.
POL097-2006-10-29 RC Coregina (VS.NET 2003) compiled on Oct 29 2006 02:41:02 running.
[11/25 14:37:44] Logfile opened.
POL097-2006-10-29 RC Coregina (VS.NET 2003) compiled on Oct 29 2006 02:41:02 running.
[11/25 14:37:44] Logfile opened.
POL097-2006-10-29 RC Coregina (VS.NET 2003) compiled on Oct 29 2006 02:41:02 running.
[11/25 14:37:45] Logfile opened.
POL097-2006-10-29 RC Coregina (VS.NET 2003) compiled on Oct 29 2006 02:41:02 running.
[11/25 14:37:46] Logfile opened.
POL097-2006-10-29 RC Coregina (VS.NET 2003) compiled on Oct 29 2006 02:41:02 running.
[11/25 14:37:46] Logfile opened.
POL097-2006-10-29 RC Coregina (VS.NET 2003) compiled on Oct 29 2006 02:41:02 running.
[11/25 14:37:47] Logfile opened.
POL097-2006-10-29 RC Coregina (VS.NET 2003) compiled on Oct 29 2006 02:41:02 running.
[11/25 14:37:48] Logfile opened.
POL097-2006-10-29 RC Coregina (VS.NET 2003) compiled on Oct 29 2006 02:41:02 running.
[11/25 14:37:48] Logfile opened.
POL097-2006-10-29 RC Coregina (VS.NET 2003) compiled on Oct 29 2006 02:41:02 running.
[11/25 14:37:49] Logfile opened.
POL097-2006-10-29 RC Coregina (VS.NET 2003) compiled on Oct 29 2006 02:41:02 running.
[11/25 14:37:50] Logfile opened.
POL097-2006-10-29 RC Coregina (VS.NET 2003) compiled on Oct 29 2006 02:41:02 running.
[11/25 14:37:50] Logfile opened.
POL097-2006-10-29 RC Coregina (VS.NET 2003) compiled on Oct 29 2006 02:41:02 running.
[11/25 14:37:51] Logfile opened.
POL097-2006-10-29 RC Coregina (VS.NET 2003) compiled on Oct 29 2006 02:41:02 running.
[11/25 14:37:52] Logfile opened.
POL097-2006-10-29 RC Coregina (VS.NET 2003) compiled on Oct 29 2006 02:41:02 running.
[11/25 14:37:52] Logfile opened.
POL097-2006-10-29 RC Coregina (VS.NET 2003) compiled on Oct 29 2006 02:41:02 running.
[11/25 14:37:53] Logfile opened.
POL097-2006-10-29 RC Coregina (VS.NET 2003) compiled on Oct 29 2006 02:41:02 running.
[11/25 14:37:54] Logfile opened.
POL097-2006-10-29 RC Coregina (VS.NET 2003) compiled on Oct 29 2006 02:41:02 running.
[11/25 14:37:55] Logfile opened.
POL097-2006-10-29 RC Coregina (VS.NET 2003) compiled on Oct 29 2006 02:41:02 running.
[11/25 14:37:55] Logfile opened.
POL097-2006-10-29 RC Coregina (VS.NET 2003) compiled on Oct 29 2006 02:41:02 running.
[11/25 15:05:19] Logfile opened.
POL097-2006-10-29 RC Coregina (VS.NET 2003) compiled on Oct 29 2006 02:41:02 running.
[11/27 00:06:39] Logfile opened.
POL097-2006-10-29 RC Coregina (VS.NET 2003) compiled on Oct 29 2006 02:41:02 running.
[11/27 00:08:40] Logfile opened.
POL097-2006-10-29 RC Coregina (VS.NET 2003) compiled on Oct 29 2006 02:41:02 running.
Unable to read script 'pkg/attributes/hooks/vitalInit.ecl'
[11/27 00:10:19] Logfile opened.
POL097-2006-10-29 RC Coregina (VS.NET 2003) compiled on Oct 29 2006 02:41:02 running.
[11/27 00:10:21] Unable to read script 'scripts/start.ecl'
Game is active.
[11/27 00:11:21] sysload=0 (0) cputime=0
[11/27 00:12:21] sysload=0 (0) cputime=0
[11/27 00:13:21] sysload=0 (0) cputime=0
[11/27 00:14:00] Client#1 connected from 127.0.0.1 (1 connections) on interface 127.0.0.1
Account admin logged in from 127.0.0.1
[11/27 00:14:02] Client#1 (127.0.0.1): disconnected (account admin)
Client#2 connected from 127.0.0.1 (1 connections) on interface 127.0.0.1
Account admin logged in from 127.0.0.1
[11/27 00:14:21] sysload=0 (0) cputime=0
[11/27 00:15:08] Account admin created character 0x2
[11/27 00:15:09] Unhandled Exception! Writing Minidump file. 
This file with explanation and last lines from log files should be given to the development team.
Saved dump file to 'POL097-2006-10-29 RC Coregina-20061127001019-0.dmp'
Last Script: pkg/attributes/hooks/vitalInit.ecl PC: 50
start log

Code: Select all

POL097-2006-10-29 RC Coregina (VS.NET 2003)
compiled on Oct 29 2006 02:41:02
Copyright (C) 1993-2006 Eric N. Swanson

Reading Configuration.
hostname is mark
address: 192.168.1.105
LAN IP address is 192.168.1.105
Loading combat.cfg options...Done!
Loading package in pkg/attributes/
Loading package in pkg/connect/
INSTALLING: Exported Vital - RegenRate and MaxValue functions ...
Skipping server POL-WAN because there is no Internet IP address.
Reading data files:
  data/accounts.txt: 1 elements in 125 ms.
  data/pol.txt: 1 elements in 0 ms.
Done! 125 milliseconds.
Running startup script.
Exception caught while loading script scripts/start.ecl: Unable to open scripts/start.ecl for reading.
Unable to read script 'scripts/start.ecl'
Error reading script start
Startup script complete.
Initialization complete.  POL is active.  Ctrl-C to stop.
script log

Code: Select all

[11/25 02:34:38] 0x005d96cc
0x005d96dc
[11/25 03:07:55] 0x005d96cc
0x005d96dc
[11/25 13:16:52] 0x005d96cc
[11/25 13:16:53] 0x005d96dc
[11/25 13:18:24] 0x005d96cc
0x005d96dc
[11/25 13:37:35] 0x005d96cc
0x005d96dc
[11/25 14:20:20] 0x005d96cc
0x005d96dc
[11/25 14:28:21] 0x005d96cc
[11/25 14:28:22] 0x005d96dc
[11/25 14:37:44] 0x005d96cc
0x005d96dc
[11/25 14:37:44] 0x005d96cc
[11/25 14:37:45] 0x005d96dc
[11/25 14:37:45] 0x005d96cc
[11/25 14:37:46] 0x005d96dc
[11/25 14:37:46] 0x005d96cc
0x005d96dc
[11/25 14:37:46] 0x005d96cc
[11/25 14:37:47] 0x005d96dc
[11/25 14:37:47] 0x005d96cc
[11/25 14:37:48] 0x005d96dc
[11/25 14:37:48] 0x005d96cc
0x005d96dc
[11/25 14:37:48] 0x005d96cc
[11/25 14:37:49] 0x005d96dc
[11/25 14:37:49] 0x005d96cc
[11/25 14:37:50] 0x005d96dc
[11/25 14:37:50] 0x005d96cc
0x005d96dc
[11/25 14:37:50] 0x005d96cc
[11/25 14:37:51] 0x005d96dc
[11/25 14:37:51] 0x005d96cc
[11/25 14:37:52] 0x005d96dc
[11/25 14:37:52] 0x005d96cc
0x005d96dc
[11/25 14:37:52] 0x005d96cc
[11/25 14:37:53] 0x005d96dc
[11/25 14:37:53] 0x005d96cc
[11/25 14:37:54] 0x005d96dc
[11/25 14:37:54] 0x005d96cc
[11/25 14:37:55] 0x005d96dc
[11/25 14:37:55] 0x005d96cc
0x005d96dc
[11/25 14:37:55] 0x005d96cc
[11/25 15:05:19] 0x005d96cc
0x005d96dc
[11/27 00:06:39] 0x005d96cc
[11/27 00:06:40] 0x005d96dc
[11/27 00:08:40] 0x005d96cc
0x005d96dc
[11/27 00:10:19] 0x005d96cc

What occured: I was finally able to log into my server, and created a character. The game froze at 'Creating character' loading message!
I know that people will probably ask for a start.src or .ecl .. they don't exist I checked and I don't have it. Should I just make a blank file ?? Or what is to be included in the start.src/.ecl . Thanks in advance !

Here is the appropriately mentioned .dmp file:

Posted: Tue Nov 28, 2006 4:32 am
by Pierce
The start.src could look that way, if you don't want to start anything at server up:

Code: Select all

program ServerStartup()
	return 1;
endprogram
Do you have a oncreate.src for character creation?
Nevertheless try to ecompile -l vitalInit.src to get the .lst file of that script.
Look into that file around PC 50 to find the script part that seems to cause the crash.

Posted: Tue Nov 28, 2006 7:32 am
by Marilla
You will likely eventually have stuff in start.src/.ecl, but just to get running, it's not needed at all; POL caught the exception generated by that file being missing, and moved on.

The source and list (.src and .lst) of your vitalInit could be useful to see at this point, as that is what was running last when the crash occurred. I always run my compiles with the 'list' option enabled, so that I always have a .lst file available right away, if it's ever needed to track a crash (which thankfully, knock on wood, happens very rarely on our shard)...

Anyway, one thing just off the top of my head that may or may not be worth the keystrokes I'm using to write them. In re: this post:

http://forums.polserver.com/viewtopic.p ... ight=#5728

The values you set for regen rate and max are very, very low. You've basically capped every single mobile at 1 hit point max. (the value from there is a 'base' value, which is in hundredths) Also, my own regen rate function returns a default of 1200, so the 100 you returned there is also very low.

It would seem that, despite the very low values, POL should handle it. If you want health regen to be 1/12 of what mine is, and if you want all mobs to have max HP of 1, that's your issue (and my understanding is you just tossed in those values in the function just to get things running, not because you decided those are the values you want).... however, perhaps one of those numbers being so low is the cause of the crash.

Try raising the return values of those two functions. Just to be in 'safe', normal territory (again, still not 'real' values you would use with a real shard), have the regen function return 1200, and have the Max value function return 10000. Recompile (with the 'list' option so that you get the .lst file, in case it crashes again), and see how it works.

If it still crashes, post the .src and .lst (and make sure the pol.log shows the same last script running. If not, you'll need src/lst from whatever other file it shows)

Greetings !

Posted: Tue Nov 28, 2006 9:43 am
by Kirin
Greetings friends !

Alright ! First point of interest:
-Nope I don't have a character creation .src file!
-Indeed my values of functions are j ust to get the frame work up as I have no CLUE ! what any of them do atm :)


I first deleted the old ECL and tried giving the values you first recommended Marilla I believe for example you meant something like:

Code: Select all

exported function GetLifeRegenRate(1200)
	return 10000;
endfunction
But it returns an error. So i'm probably missing the proper way how to do this I went ahead and reinserted 'mobile' local variable in its place but did maintain a higher returning value. I get the same problem crashing at character creation message screen. Again it mentions PC50 being the last point of departure... Now knowing what the heck it's referring to I checked the file.. here's the last few lines:

VitalInit.lst

Code: Select all

C:\Documents and Settings\Marquis\Desktop\097-BasicSetup\pkg\attributes\hooks\vitalInit.src, Line 26
exported function GetStaminaMaximumValue(mobile)
42: makelocal
43: jmp userfunc @45
44: progend
45: pop param 'mobile'
return 10000;
46: 10000L
47: return
C:\Documents and Settings\Marquis\Desktop\097-BasicSetup\pkg\attributes\hooks\vitalInit.src, Line 22
exported function GetStaminaRegenRate(mobile)
48: makelocal
49: jmp userfunc @51
50: progend
51: pop param 'mobile'
return 10000;
52: 10000L
53: return
To me.. it appears to be identical to readout from t he rest of the functions.
I won't be so foolish as to speculate what's causing this instead I"ll include the .src readout for you.

VitalInit.src

Code: Select all

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

exported function GetLifeRegenRate(mobile)
	return 10000;
endfunction

exported function GetLifeMaximumValue(mobile)
	return 10000;
endfunction

exported function GetManaRegenRate(mobile)
	return 10000;
endfunction

exported function GetManaMaximumValue(mobile)
	return 10000;
endfunction

exported function GetStaminaRegenRate(mobile)
	return 10000;
endfunction

exported function GetStaminaMaximumValue(mobile)
	return 10000;
endfunction

exported function GetHitsRegenRate(mobile)
	return 10000;
endfunction

exported function GetHitsMaximumValue(mobile)
	return 10000;
endfunction
Thanks again guys for your continued patience !! I"m attempting to document very well my experiences and problems because after I get barebones operations I'm going to compose a tutorial on this matter so approaching and working with POL is more accessible to those new to the community.

Kindest Regards,
Alan

Posted: Wed Dec 06, 2006 6:16 am
by MuadDib
Any idea the realm the character was being created to? Also, the base realm settings for britannia and britannia_alt would be nice too (from the realms cfg file in the respective directories of course) for width.

Crash "appears" to be happening reporting the realm's width. Are you using an older (before UOML) mapbase, or using the newer UOML map base?

Hello !

Posted: Wed Dec 13, 2006 8:43 am
by Kirin
Greetings my friend !

Ahhh work has been shall we say --- impossibly busy !! HAH but now I once again have time to work on this most pleasing problem of producing a UO Shard.

As far as your first inquiry I'm not sure the realm the character is being created to - I possibly might know the answer, however I'm not sure of what the 'realm' is ?? Are you referring to the area 'in game' like brittannia or the other island, keep in mind and bear with me on the fact that I've not actually played UO so easy references to such things will pass quite a great distance over my head. If this is the question you're asking, how my friend do I find this out??

For your second question: I cannot locate a .cfg of the appropriate type you mentioned. I've scoured my entire emulator directory and it is non-existant!! Perhaps this would be a problem? Is the .cfg file you're referring to in the UO folder ? I will look here next.

And to wrap up this interesting problem -- To my knowledge I've done nothing involving a 'mapbase'. The o nly elements I've been dealing with are the core/distro/uorice. Perhaps this is another cause of said problem. Can you please elaborate as to what these mapbases are or mainly - what their function is. If am to make educated guesses along with you on solving the problem it would be best I know what I'm dealing with !

I thank you very much POL team for your continued efforts in helping me get a shard running, to be sure it is appreciated! I apologize for perhaps disrespecting your attention by taking almost a week to respond to your assistance, If it could've been helped it would've !

With respect,
and as always,
Kindest Regards

Posted: Wed Dec 13, 2006 10:21 am
by CWO
realms are also known as facets. If you don't know either, theres multiple maps in UO, Trammel, Felucca, Ilshenar, Malas, and Tokuno Islands. Those are what we call realms on POL except Trammel and Felucca are known here as Britannia and Britannia_alt respectively.

as for the realm.cfg, it would reside in POL/realm/(realm name)/realm.cfg
this gets created when you run UOConvert with all the necessary arguements (UOConvert.txt lists all arguements you need).

The above talking about UOConvert.exe and UOConvert.txt should answer this question.

Problem solved !

Posted: Wed Dec 13, 2006 9:36 pm
by Kirin
Greetings friends !

Problem solved, and indeed my shard is now operational and the good problems begin :) I have compiled a tutorial to help people get up to this point with as much ease as is possible. I will post it on the forums though I'm not quite sure where. Thank you for all your help, I only hope that I might return the favor in due time !

Kindest Regards,
Kirin

Posted: Wed Dec 13, 2006 10:06 pm
by MuadDib
Guides forum would be the place to post it ;)