[Solved] Text Variable -> Source -> Reference?

● ARCHIVED · READ-ONLY
Started by FoxySeta 7 posts View original ↗
  1. So, I'm working on a health gauge extension, and I realized that you cannot use a reference as a source for the "Text Variable" scene command. I'll probably use a script instead, so this is no big deal. Still, I was wondering if I really am the only one who cannot find this option.

    (No need to provide a patch thanks, if this is an engine's problem, I'll just patiently wait for a patch:kaopride:)

    EDIT: Actually, I'm having troubles even with using scripts (not because of a bug in the engine, just cuz i'm noob), so if that patch could be exported with the extension I'd really appreciate it.

    About my scripting-related problems, I guess it's because my use of:
    Code:
    //Should return the value of a certain global string variable from the default group, but I always get 0.
    GameManager.variableStore.stringValueAtIndex(1, /*index here*/, "");
    I've also used this family of functions for local variables, and they have always worked just fine.
  2. Bump
  3. Hi FoxySeta, you don't need to bump the thread since it's not getting buried at all. It's also the weekend so it might take us a while to respond.
  4. Hi FoxySeta,

    it is true that the reference option is missing for string operation for the source. I will put that on the list of features :)

    For script, it should be fine but try to put 0 instead of "" for the domain. Does it work fine then? If not, did you try to pass "com.degica.vnm.default" ?

    Let me know if that helps you out.
  5. Archeia said:
    Hi FoxySeta, you don't need to bump the thread since it's not getting buried at all. It's also the weekend so it might take us a while to respond.
    You're right, sorry about that.
    Kentou said:
    Hi FoxySeta,

    it is true that the reference option is missing for string operation for the source. I will put that on the list of features :)

    For script, it should be fine but try to put 0 instead of "" for the domain. Does it work fine then? If not, did you try to pass "com.degica.vnm.default" ?

    Let me know if that helps you out.
    Well, using 0 it actually worked for some reason, but he must not have used the default domain since even after exporting as extension it was still using "com.degica.vnm.default". I ended up hard-coding my extension's domain directly in the code instead.

    Thanks anyway!
  6. This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

  7. Well, using 0 it actually worked for some reason, but he must not have used the default domain since even after exporting as extension it was still using "com.degica.vnm.default". I ended up hard-coding my extension's domain directly in the code instead.

    Yes, right now in scripting you have to code the right domain in. With commands, the default domain gets replaced with your own one on extension creation. Hope that clarifies it a bit more. Maybe that can be improved in the future.