Jump to content

Photo

ghost.zh


  • Please log in to reply
645 replies to this topic

#496 Cukeman

Cukeman

    "Tra la la, look for Sahasrahla. ... ... ..."

  • Banned
  • Location:Hyrule/USA

Posted 01 March 2016 - 10:19 PM

They weren't in the right directory, I had them in the same folder as the Zelda Classic application. Also I didn't have all the files, just the .zh files themselves (this setup seems to work on Windows for whatever reason- at least as far as I can tell).
 
Anyway, I tried putting the ghost and ffcscript files in the Contents>Resources folder, but I still got the same error message. Can you clarify the correct placement in the directory more? I think I'm still a little confused by your wording.

 

And please tell me where to put tango too, 'cause that might be something I'll use in the future.

 

EDIT:

 

Are you sure you have them in the right directory? They should be in Contents/Resources inside the ZQuest package.

It doesn't seem to extract the files the way I expect... If you have a ghost_zh folder with another ghost_zh folder and some other stuff inside, it's the stuff inside the folder that needs to go there.

 

The stuff inside the first folder you mentioned or the second folder you mentioned? I tried both. Still confused.


Edited by Cukeman, 01 March 2016 - 10:45 PM.


#497 Saffith

Saffith

    IPv7 user

  • Members

Posted 01 March 2016 - 11:00 PM

Yeah, the .txt files don't really matter. Any .zh files and folders of .zh files need to go there.
Also, I forgot, there was no ghost_zh folder in 2.3.x, just ghost.zh and ghost_legacy.zh. So for that version, it's just those two files that need to go in Contents/Resources.
For Tango, tango.zh and the tango folder (containing a folder named font and another named either 1.0 or 1.1) go there.

Here's a screenshot: http://i.imgur.com/sabFSip.png

#498 Cukeman

Cukeman

    "Tra la la, look for Sahasrahla. ... ... ..."

  • Banned
  • Location:Hyrule/USA

Posted 01 March 2016 - 11:06 PM

Can I use the ghost_legacy.zh from 2.8.0 with ghost.zh 2.3.1? I don't think I have the legacy file from 2.3.1 anymore


Edited by Cukeman, 01 March 2016 - 11:07 PM.


#499 Saffith

Saffith

    IPv7 user

  • Members

Posted 01 March 2016 - 11:24 PM

You don't really need it at all, actually; that's an optional add-on for compatibility with scripts from 1.x, which are practically nonexistent. It's never changed, so the newest version is still compatible.

#500 Cukeman

Cukeman

    "Tra la la, look for Sahasrahla. ... ... ..."

  • Banned
  • Location:Hyrule/USA

Posted 01 March 2016 - 11:32 PM

Okay. I placed all the files exactly as you depicted in your screenshot.

Here's a screen shot of my directory: http://oi68.tinypic.com/2jd1d7m.jpg

 

 

I tried compiling each one on its own in a new .qst file:

 

1st attempt:

import "std.zh"

import "ffcscript.zh"

 

2nd attempt:

import "std.zh"

import "tango.zh"

 

3rd attempt:

import "std.zh"

import "ghost.zh"

 

I got the same "failure to parse imported file" error (line 2) message each time.

Darn.


Edited by Cukeman, 01 March 2016 - 11:41 PM.


#501 Saffith

Saffith

    IPv7 user

  • Members

Posted 02 March 2016 - 12:09 AM

You need string.zh as well.
If it still doesn't work, could you show me the exact error message? You can copy it from allegro.log, which is also in Contents/Resources.

#502 Cukeman

Cukeman

    "Tra la la, look for Sahasrahla. ... ... ..."

  • Banned
  • Location:Hyrule/USA

Posted 02 March 2016 - 12:34 AM

I tried it again, first by adding the line between each like this:

import "std.zh"
import "string.zh"
import "ffcscript.zh"

Then I opened the directory and pasted in the string.zh file from the windows version of ZC and tried again.

Still no effect, same error message.

I don't know how to find the message in allegro log, but here's the file itself: http://www.mediafire...j54/allegro.log


Edited by Cukeman, 02 March 2016 - 12:34 AM.


#503 Saffith

Saffith

    IPv7 user

  • Members

Posted 02 March 2016 - 12:58 AM

Ah, I think I see what the problem is. That's the ZC package you're in, not ZQuest.

#504 Cukeman

Cukeman

    "Tra la la, look for Sahasrahla. ... ... ..."

  • Banned
  • Location:Hyrule/USA

Posted 02 March 2016 - 12:59 AM

Ah, I think I see what the problem is. That's the ZC package you're in, not ZQuest.

 

What does that mean?

 

EDIT: Oh, I see.

EDIT2: It works, THANK YOU!!! :D :D :D

(I wondered why my directory looked a little different than yours)

 

EDIT3: So I'm looking at my global script slot, do you have to pick between either GhostZH or Tango for your active slot? You can't run both? I'm not even using Tango, so I'm only curious, it's not a problem for me either way.


Edited by Cukeman, 02 March 2016 - 01:09 AM.


#505 Saffith

Saffith

    IPv7 user

  • Members

Posted 02 March 2016 - 01:24 AM

They can be combined easily. For 2.3, it'd be:
global script Combined
{
    void run()
    {
        StartClock();
        
        while(true)
        {
            UpdateEWeapons();
            UpdateClock();
            CleanUpGhostFFCs();
            Tango_Update1();
            
            Waitdraw();
            
            AutoGhost();
            Tango_Update2();
            
            Waitframe();
        }
    }
}

  • Cukeman likes this

#506 Timelord

Timelord

    The Timelord

  • Banned
  • Location:Prydon Academy

Posted 07 March 2016 - 10:44 PM

Is there anything going on in the newer builds of ghost.zh that would interfere with this:

 

http://www.purezc.ne...e=2#entry990743

 

I know of no reason that this would stop working by the user adding ghost.zh. He's apparently properly integrated everything, and made a new save slot, so it isn't an array pointer issue; or so he claims.


Edited by ZoriaRPG, 07 March 2016 - 10:56 PM.


#507 Hari

Hari

    snivy gang

  • Members
  • Real Name:harlie
  • Pronouns:She / Her

Posted 26 March 2016 - 11:16 PM

A quick question about ghosted enemies:
If a script using ghost.zh doesn't specify how an enemy should move, will it default to the enemy's movement pattern that is specified in the enemy editor?

#508 Lejes

Lejes

    Seeker of Runes

  • Members
  • Location:Flying High Above Monsteropolis

Posted 26 March 2016 - 11:18 PM

If it uses Ghost_Waitframe2(), yes.
  • Hari likes this

#509 Hari

Hari

    snivy gang

  • Members
  • Real Name:harlie
  • Pronouns:She / Her

Posted 26 March 2016 - 11:20 PM

That was quick. Thanks for the help.

#510 Mani Kanina

Mani Kanina

    Rabbits!

  • Moderators
  • Pronouns:She / Her
  • Location:The Moon

Posted 08 April 2016 - 04:21 PM

Can we get this library added to the script database? I mean, I see no reason as for why it shouldn't.


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users