Script related questions

Help regarding development/scripting, troubleshooting or just general gameplay -- anything that hasn't already been answered in the Wiki or pinned FAQs.

Moderator: Developers

User avatar
HyugaNeji
Chest Mimic (Community member)
Chest Mimic (Community member)
Posts: 185
Joined: Thu Jul 24, 2008 4:07 pm
Location: Buenos Aires,Argentina

Post by HyugaNeji »

Thanks that worked, but then ( after a while ).......
Starting Egoboo 2.6.5b...
INFO: Initializing high-performance counter...
INFO: Frequency is 3579545 hz
INFO: Initializing clock services...
INFO: Initializing filesystem services...
INFO: Game directories are:
Game: D:\Seba\Egoboo
Temp: C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\
Save: D:\Mis documentos\egoboo\
Import: C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\import\
INFO: net_initialize: Networking not enabled.
NOTE: I am missing a AI script (modules/heist.mod/objects/tree.obj/script.txt)
Using the default AI script instead (basicdat/script.txt)
NOTE: I am missing a AI script (modules/bishopiacity.mod/objects/haypile.obj/script.txt)
Using the default AI script instead (basicdat/script.txt)
NOTE: I am missing a AI script (modules/bishopiacity.mod/objects/stool.obj/script.txt)
Using the default AI script instead (basicdat/script.txt)
NOTE: I am missing a AI script (modules/bishopiacity.mod/objects/table2.obj/script.txt)
Using the default AI script instead (basicdat/script.txt)
NOTE: I am missing a AI script (modules/bishopiacity.mod/objects/tree.obj/script.txt)
Using the default AI script instead (basicdat/script.txt)
NOTE: I am missing a AI script (modules/bishopiacity.mod/objects/haypile.obj/script.txt)
Using the default AI script instead (basicdat/script.txt)
NOTE: I am missing a AI script (modules/bishopiacity.mod/objects/stool.obj/script.txt)
Using the default AI script instead (basicdat/script.txt)
NOTE: I am missing a AI script (modules/bishopiacity.mod/objects/table2.obj/script.txt)
Using the default AI script instead (basicdat/script.txt)
NOTE: I am missing a AI script (modules/bishopiacity.mod/objects/tree.obj/script.txt)
Using the default AI script instead (basicdat/script.txt)
FATAL ERROR: One of the data pairs is wrong! (0 and 0) Cannot be 0 or less.
User avatar
Zefz
Squirrel Knight (Administrator)
Squirrel Knight (Administrator)
Posts: 3820
Joined: Wed Jul 23, 2008 1:27 am
Location: Norway
Contact:

Post by Zefz »

Script errors should not be any issue for making the game work.

I think that error message means that Egoboo is trying to generate a random number which cannot be generated. Do you have any customized stuff/objects?

If not, it seems a good possibility for a 2.6.5c release to fix these small issues.
User avatar
HyugaNeji
Chest Mimic (Community member)
Chest Mimic (Community member)
Posts: 185
Joined: Thu Jul 24, 2008 4:07 pm
Location: Buenos Aires,Argentina

Post by HyugaNeji »

Zefz wrote:Script errors should not be any issue for making the game work.

I think that error message means that Egoboo is trying to generate a random number which cannot be generated. Do you have any customized stuff/objects?

If not, it seems a good possibility for a 2.6.5c release to fix these small issues.


No, I don't It just do not let me enter bishopia. :cry:
User avatar
penguinflyer5234
Sheep (Developer)
Sheep (Developer)
Posts: 3025
Joined: Wed Jul 23, 2008 1:39 am
Location: Best Southwest

Post by penguinflyer5234 »

I do wish that the "FATAL ERROR" messages were more verbose...
...
User avatar
HyugaNeji
Chest Mimic (Community member)
Chest Mimic (Community member)
Posts: 185
Joined: Thu Jul 24, 2008 4:07 pm
Location: Buenos Aires,Argentina

Post by HyugaNeji »

Hi again, could u help me with this ?

Starting Egoboo 2.6.5b...
INFO: Initializing high-performance counter...
INFO: Frequency is 3579545 hz
INFO: Initializing clock services...
INFO: Initializing filesystem services...
INFO: Game directories are:
Game: D:\Seba\Egoboo
Temp: C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\
Save: D:\Mis documentos\egoboo\
Import: C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\import\
INFO: net_initialize: Networking not enabled.
WARN: Object is missing an skin (modules/zippy.mod/objects/light.obj/)!
SCRIPT ERROR: modules/catacomb1.mod/objects/linuxshield.obj/script.txt - IfOperatorIsLinux undefined
SCRIPT ERROR: modules/catacomb1.mod/objects/linuxshield.obj/script.txt - IfOperatorIsLinux undefined
WARN: Cannot load file! (modules/catacomb1.mod/objects/linuxshield.obj/tris.md2)
SCRIPT ERROR: modules/catacomb1.mod/objects/mageblade.obj/script.txt - IfTargetHasNotFullMana undefined
INFO: Exiting Egoboo 2.6.5b the good way...
INFO: net_shutDown: Turning off networking.
User avatar
Zefz
Squirrel Knight (Administrator)
Squirrel Knight (Administrator)
Posts: 3820
Joined: Wed Jul 23, 2008 1:27 am
Location: Norway
Contact:

Post by Zefz »

None of the errors or warnings are serous except:
WARN: Cannot load file! (modules/catacomb1.mod/objects/linuxshield.obj/tris.md2)

It seems you too have problems with this file (I just answered another post on this problem). Simple solution would be to delete the folder named "linuxshield.obj" located under "modules/catacomb1.mod/objects".

Maybe the module file is corrupt? For some reason Egoboo refuses or cannot load the .md2 file for the shield (although it should be exactly the same as any other kite shield).
User avatar
HyugaNeji
Chest Mimic (Community member)
Chest Mimic (Community member)
Posts: 185
Joined: Thu Jul 24, 2008 4:07 pm
Location: Buenos Aires,Argentina

Post by HyugaNeji »

And what about my other problem?

Starting Egoboo 2.6.5b...
INFO: Initializing high-performance counter...
INFO: Frequency is 3579545 hz
INFO: Initializing clock services...
INFO: Initializing filesystem services...
INFO: Game directories are:
Game: D:\Seba\Egoboo
Temp: C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\
Save: D:\Mis documentos\egoboo\
Import: C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\import\
INFO: net_initialize: Networking not enabled.
NOTE: I am missing a AI script (modules/heist.mod/objects/tree.obj/script.txt)
Using the default AI script instead (basicdat/script.txt)
NOTE: I am missing a AI script (modules/bishopiacity.mod/objects/haypile.obj/script.txt)
Using the default AI script instead (basicdat/script.txt)
NOTE: I am missing a AI script (modules/bishopiacity.mod/objects/stool.obj/script.txt)
Using the default AI script instead (basicdat/script.txt)
NOTE: I am missing a AI script (modules/bishopiacity.mod/objects/table2.obj/script.txt)
Using the default AI script instead (basicdat/script.txt)
NOTE: I am missing a AI script (modules/bishopiacity.mod/objects/tree.obj/script.txt)
Using the default AI script instead (basicdat/script.txt)
NOTE: I am missing a AI script (modules/bishopiacity.mod/objects/haypile.obj/script.txt)
Using the default AI script instead (basicdat/script.txt)
NOTE: I am missing a AI script (modules/bishopiacity.mod/objects/stool.obj/script.txt)
Using the default AI script instead (basicdat/script.txt)
NOTE: I am missing a AI script (modules/bishopiacity.mod/objects/table2.obj/script.txt)
Using the default AI script instead (basicdat/script.txt)
NOTE: I am missing a AI script (modules/bishopiacity.mod/objects/tree.obj/script.txt)
Using the default AI script instead (basicdat/script.txt)
FATAL ERROR: One of the data pairs is wrong! (0 and 0) Cannot be 0 or less.
User avatar
woodmouse
Monolich (Senior Member)
Monolich (Senior Member)
Posts: 4586
Joined: Wed Jul 23, 2008 3:53 pm
Location: Finland
Contact:

Post by woodmouse »

Guaaah! There's a scrpit error now... It wasn't in 2.6.4... The super sword I made has error. I don't know what the error is exactly, but... :(
Once upon a time, when unicorns roamed the earth...
bgbirdsey
{]-[0{0|307 (Developer)
{]-[0{0|307 (Developer)
Posts: 1864
Joined: Wed Jul 23, 2008 4:22 am
Location: Minnesota, USA

Post by bgbirdsey »

zefz, we need to change the logging of this error

FATAL ERROR: One of the data pairs is wrong! (0 and 0) Cannot be 0 or less.


so that we know which file is being processed.

@HyugaNeji, There may be stdout.txt and stderr.txt and debug.txt files in the same dir. Do they say anything?
User avatar
HyugaNeji
Chest Mimic (Community member)
Chest Mimic (Community member)
Posts: 185
Joined: Thu Jul 24, 2008 4:07 pm
Location: Buenos Aires,Argentina

Post by HyugaNeji »

@HyugaNeji, There may be stdout.txt and stderr.txt and debug.txt files in the same dir. Do they say anything?


I don't understand. Where those suppose to be?
bgbirdsey
{]-[0{0|307 (Developer)
{]-[0{0|307 (Developer)
Posts: 1864
Joined: Wed Jul 23, 2008 4:22 am
Location: Minnesota, USA

Post by bgbirdsey »

The same dir as log.txt
User avatar
HyugaNeji
Chest Mimic (Community member)
Chest Mimic (Community member)
Posts: 185
Joined: Thu Jul 24, 2008 4:07 pm
Location: Buenos Aires,Argentina

Post by HyugaNeji »

No, they aren't there....
User avatar
Zefz
Squirrel Knight (Administrator)
Squirrel Knight (Administrator)
Posts: 3820
Joined: Wed Jul 23, 2008 1:27 am
Location: Norway
Contact:

Post by Zefz »

Yes we need to know what that error actually is. I am not sure what it means, but it printed it in stderror before (last release I made everything print in log.txt)
User avatar
Zefz
Squirrel Knight (Administrator)
Squirrel Knight (Administrator)
Posts: 3820
Joined: Wed Jul 23, 2008 1:27 am
Location: Norway
Contact:

Post by Zefz »

Okay. The error message is generated when Egoboo wants to generate a random number (like particle damage or random hp gain) and when the number to be generated is 0 or less.

I changed it to be a warning instead and default to the base number it is supposed to add after random generation.
User avatar
PurpleSquerkle
Massive Gelfeet (Developer)
Massive Gelfeet (Developer)
Posts: 3176
Joined: Wed Jul 23, 2008 4:54 am
Location: Oakland, CA
Contact:

Post by PurpleSquerkle »

Quick question.

Code: Select all

 //This runs if the player ate the cookie
  IfStateIs1
    tmpargument = 1
    PlaySound
    tmpargument = 0 - 32            // Decrease max life a little
    GiveLifeToTarget
   
    // Increase current life
    tmpargument = rand & 2047 + 2048   //Amount of life healed
    HealTarget
    tmpargument = ACTIONMC
    TargetDoAction
    tmpdistance = SPAWNORIGIN
    tmpargument = 1
    SpawnAttachedHolderParticle


How do these weird values here work? How much is one life point, etc.?
I want it to increase your max life by about the same amount that a potion decreases and heal you two to four points of life.


...I'm making fortune cookies, if that was not already obvious.
Post Reply