ID:261002
 
Hi and thanks for the help.

I'm trying to learn how to use the stat meter as described in the stat meter snippet.
But, when I try to compile the code (or even when double-clicking the 'meter.dmi' file in DreamMaker) DreamMaker spends 45 second in disk activity (normally 2 to 3 seconds) and then the

--------------------------------------------------------
"This program has performed an illegal operation and will be shut down.
If the problem persists, contact the program vendor.

DREAMMAKER caused an invalid page fault in
module KERNEL32.DLL at 0137:bff858cd.
Registers:
EAX=c00171b0 CS=0137 EIP=bff858cd EFLGS=00010202
EBX=007ce8c4 SS=013f ESP=006cffb0 EBP=006d0020
ECX=83e5eaf8 DS=013f ESI=006d021c FS=10c7
EDX=bff76648 ES=013f EDI=006d0200 GS=0000
Bytes at CS:EIP:
53 56 89 4d f8 57 8b 41 40 8b 75 08 89 45 ec 83
Stack dump:
"
---------------------------------------------

dialog box pops up.

Is the 'meter.dmi' file corrupt?

Or is my system downloading it incorrectly?
(All other .dmi files I've found on the byond site are inside of .zip files and seem to work fine.)

If some one could verify that the file is good, then I would know that the problem is either in my downloading or in something else at my end.

(I also tried it after downloading and installing the 274 version of Byond. I got the same problem.)

Again, thanks for the help.
Your X registers(AX, BX, ect..) are your main memory handlers, you see them allot when using aseembly language.
Looks to me like you Kernel32 file might be corrupt.
You could possibly try running SFC but it usually never can correct kernel32.
I have tried using the meter example and I never get any problem with my system because of it. Only problems I get is is doesn't work for me.
In response to karver
I have tried using the meter example and I never get any problem with my system because of it. Only problems I get is is doesn't work for me.

My meter code doesn't work? I'll have to check it out, then.
In response to Spuzzum
On 2/21/01 6:49 pm Spuzzum wrote:
I have tried using the meter example and I never get any problem with my system because of it. Only problems I get is is doesn't work for me.

My meter code doesn't work? I'll have to check it out, then.

I've tried to use it to...I thought I just did not know how do it right but I guess it was the script.
In response to Darkness
I've tried to use it to...I thought I just did not know how do it right but I guess it was the script.

Ah. Tom was bad, he changed the indentation when he put it in the snippets list. At least, I think he did. I know when I posted the code it was strictly from memory... I never actually made a .dm file for it, ever. Heck, it could be Guy T's bad! But never my bad. Nope, never my bad. ;-)

Geez, why didn't anyone tell me that the snippet didn't work? =)

(Dangit, Dan, where's our user-based InfoCent... re? =)

Anyway, here's the code:

mob
var
obj/meter/meter
health = 50
maxhealth = 100

New()
..()
src.meter = new
src.meter.name = "Health"

Stat()
src.meter.num = (src.health/src.maxhealth)*30
src.meter.Update()
statpanel("Stats")
stat("Health:",src.meter)

obj/meter
icon = 'meter.dmi'
icon_state = "0" //that's zero, not ( ) or O
var/num = 0
proc/Update()
src.icon_state = "[round(src.num)]"
In response to Spuzzum
Thanks Spuzzum! you were a big help