Crystal Engine – Basic Module

Image

Introduction

This is the basic script for Crystal Engine.

Features

  • Can adjust the width of the tile menu
  • Can adjust the showing of the HP and MP values in battle
  • Can remove MP from being shown
  • Can move Class Names over in the menu
  • Can move the actor name up in the menu
  • Can group digits (i.e. 1000 becomes 1,000)
  • Can add arguments to scenes
  • Can add extra entries to the database that are file specific
  • The script call current_time can be used for real time effects
  • Your can use the control code \script[string] to display script data in the message box

Script Download

Download the Latest Version

Advertisements
Categories: Scripts | 62 Comments

Post navigation

62 thoughts on “Crystal Engine – Basic Module

  1. Nick

    question is it suppose to have fake working equipment ie if you equip and axe it can be equipped to any one that can use it or if you have a default starting package and you remove it it goes to oblivion?

    • What???? Explain this a bit more, I don’t know what you are talking about. What other scripts are you using.

      • Nick

        i did a fresh project and it’s this script. lets say you have nothing but your party equips and you remove them they do not end up in the places they should but disappear and if you did have lets say a weapon and you equip it it’s still there but you have it equipped so it give you a shadow weapon that acts like the real one but nothing is changed so if you had 3 swords and you equip them to 3 of your party members you can then go sell the 3 swords as they are not technically equipped.

  2. Nick

    here are some pics to help show you what the problem is. http://imageshack.us/a/img692/1338/test4r.png


  3. Nick

    still the same and i would test this on your traitors demo as it has the problem too.

  4. Nick

    i have the one thats on the site here

  5. Fixed the Equips issue. My script worked the one on site was defective. Sorry.
    Version 1.06 now

  6. Nick

    i just tested on a fresh game and it’s not fixed 😦 now i half to ask dose your script here implement an inventory system thats the same or dose some sort of handlers for other scripts to use?

    • Sorry the above statement is wrong. I figured it out. I changed how the temporary actor for the stat changes is obtained and it somehow stopped you from equipping stuff. 😕

  7. Nick

    yay it works now thank you

  8. Bronuth

    I had a problem, it doesnt recognize the basic module :S, whatam i doing wrong? I pasted in that order :S

  9. Mustidie

    Confused…This script is not working it keeps saying

    Script ‘Crystal Engine-Basic Module’ line 478: SyntaxError occurred.
    unexpected TIDENTIFIER, unexpected key word end
    col = 0 if col < 0 col=item_max – (col_max – 1)…

    • johnlouis

      mine has the same error!!!
      Script ‘Crystal Engine-Basic Module’ line 478: SyntaxError occurred.
      unexpected TIDENTIFIER, unexpected key word end
      col = 0 if col < 0 col=item_max – (col_max – 1)…

      i did the formation in crystal noels spoiler..

  10. johnlouis

    ok..

  11. johnlouis

    now the error is in the illusions..

  12. vincent

    i have a quistion he said in the other script pokerus need the newest basic module but i download it from the site

  13. Hi, I have a problem with calling your Licence Board (or any other scene for that matter) scene from a custom menu (Galv’s menu themes engine, but XS Menu delux suffers from the same), and the error seems to come from lines 90-94 in which you overwrite the SceneManager.call function. The error was present in 1.06 and still is in 1.14, no other versions tested. Here is the error stack:

    When calling the licence board scene (note that I’ve tried both with the :licence tag and :Scene_LicenceBoard in the menu engine) :

    Crystal Basic Module:92:in `call’: undefined method `new’ for :Scene_LicenceBoard:Symbol (NoMethodError)
    from Galv’s Menu Themes Engine:453:in `on_personal_ok’
    from Licence Board:3008:in `on_personal_ok’
    from Window_Selectable:212:in `call’
    from Window_Selectable:212:in `call_handler’
    from Window_Selectable:331:in `call_ok_handler’
    from Window_Selectable:322:in `process_ok’
    from Window_MenuStatus:67:in `process_ok’
    from Window_Selectable:297:in `process_handling’
    from Window_Selectable:276:in `update’
    from Scene_Base:95:in `block in update_all_windows’
    from Scene_Base:93:in `each’
    from Scene_Base:93:in `update_all_windows’
    from Scene_Base:49:in `update_basic’
    from Scene_Base:41:in `update’
    from YEA Debug menu:417:in `update’
    from Galv’s Menu Themes Engine:937:in `update’
    from Galv’s Menu Themes Engine:382:in `update’
    from Scene_Base:14:in `main’
    from Killozapit – Cache Back:250:in `main’
    from SceneManager:23:in `run’
    from Main:9:in `block in ‘

    And here’s the error when calling the equipment scene for example:

    Crystal Basic Module:92:in `call’: undefined method `new’ for :Scene_Equip:Symbol (NoMethodError)
    from Galv’s Menu Themes Engine:453:in `on_personal_ok’
    from Licence Board:3008:in `on_personal_ok’
    from Window_Selectable:212:in `call’
    from Window_Selectable:212:in `call_handler’
    from Window_Selectable:331:in `call_ok_handler’
    from Window_Selectable:322:in `process_ok’
    from Window_MenuStatus:67:in `process_ok’
    from Window_Selectable:297:in `process_handling’
    from Window_Selectable:276:in `update’
    from Scene_Base:95:in `block in update_all_windows’
    from Scene_Base:93:in `each’
    from Scene_Base:93:in `update_all_windows’
    from Scene_Base:49:in `update_basic’
    from Scene_Base:41:in `update’
    from YEA Debug menu:417:in `update’
    from Galv’s Menu Themes Engine:937:in `update’
    from Galv’s Menu Themes Engine:382:in `update’
    from Scene_Base:14:in `main’
    from Killozapit – Cache Back:250:in `main’
    from SceneManager:23:in `run’
    from Main:9:in `block in ‘

    Note that once I have disabled your 2 scripts I have installed (core and licence board) the other scenes threw no error.

  14. the colon’s there because it’s as far as I know, a method, without the colon, the Galv menu themes engine threw a name error. In that script’s configuration, every other scene also uses a colon. Can this be the reason why it works with the YEA Menu and not with other CMS-es?

  15. ncognitoshadow

    when trying to test it gives me an error saying Script Basic Module v1.14′ Line 1: Nameerror Occured.
    undefined local variable or method for main: object

  16. Zack

    I get an error when trying to start my game:

    “Script ‘Crystal Engine’ line 3: SyntaxError occurred.

    unexpected tEQQ
    =====”

    What does this mean?

    • Sometimes the # at the beginning of the first line gets messed up when going between the script editor and notepad, to fix this highlight the # and just retype another #.

      • Zack

        I fixed that one. now I got another error:
        “Script ‘CE GF Junction’ line 283: SyntaxError occurred.

        unexpected tLBRACK, expecting ‘]’
        [@learning_skill][0]].min”

        I’m afraid to edit that part because it’s beyond the point where it says “edit at your own risk” can you help me with this one?

      • That should be fixed now

  17. Drago

    The Job Level script for some reason doesn’t work. You don’t level up when you get enough JP. It looks like this 120/100 JP and the job is still on level 1. How do I fix this?

  18. Abagail

    I have a problum as soon as i open my game it says “Line 1 eror”

  19. Abagail

    okay id did some work there is an undifined local variable but because i have no scripting tallents i have no idea how to fix it.

  20. Jonudro

    Hey how do i fix this?
    Script ‘Crystal Engine Pokemon Battle System’ line 509: SyntaxError occurred.
    The Script ‘Crystal Engine – Pokemon Battle System’ Requires the latest
    version of Crystal Engine – Trainer to work Properly.

  21. Xene

    Can’t see the download button :/

  22. cHAOScythe

    None of your scripts are appearing for me to download or copy/paste. Any idea why this might be? Under Script Download is just a blank space…

  23. Zachary

    I have a problem with line 143 where it says nameerror occured

    uninitialised constant object:::Game_Battler

  24. Veigh

    Hi, I Keep getting this error when I Try launching it:
    Script ‘Crystal Engine’ line 2:NameError occurred.

    undefined local variable or method ” for main:Object

    Now, I Have never used RPG Maker vx ace’s script manager before and this is the first script I Have downloaded, I Am hoping you can help please =3

  25. it wont let me download the script the link is missing

  26. Sassybaskets

    I have the same error as Veigh.

  27. 1SDAN

    I have Veigh’s error too.

  28. We’re a group of volunteers and starting a new scheme in our community.
    Your site offered us with valuable information to work on.
    You have done an impressive job and our entire community
    will be thankful to you.

  29. bouse

    je ne sait pas ou mettre ce scripts svp aidez moi!!

  30. RiseEvil

    I was wondering if there was a way to simple disable the HP and MP bar options of this script in order to use a custom gauge script for HP and MP. If there isn’t, I can understand too.

    • You can comment out that part. Search for “class Window_Base”. That should get you to where you need to start commenting. Also, if you put the custom gauge script bellow this one. In theory it should override the gauge options.

      • RiseEvil

        Thanks for the answer, sir, I’ll try this out. ^^

      • RiseEvil

        You were right, I just had to put the gauge scripts below the Basic Module. You have all my thanks, sir. I’m so grateful to you and your advice ^^

  31. I got an error when using this script:

    Script ‘Crystal Engine – Basic Module’ line 210: NameError occured.

    uninitialized constant CRYSTAL::EXP

    when I win a battle.

    • mochipup

      Sorry for the ridiculously late post, but I found a way in case anyone wants to!
      The error is likely caused because you have some victory script used to show exp and stuff. I figured a way out of it by simply deleting the following which start at line 210:

      #————————————————————————–
      # * Get Experience
      #————————————————————————–
      def exp(actor = nil)
      eval(CRYSTAL::EXP::FORMULA).to_i
      end
      end
      #==============================================================================
      # ** Game_Troop
      #——————————————————————————
      # This class handles enemy groups and battle-related data. Also performs
      # battle events. The instance of this class is referenced by $game_troop.
      #==============================================================================

      class Game_Troop < Game_Unit
      #————————————————————————–
      # * Calculate Total Experience
      #————————————————————————–
      def exp_total(actor = nil)
      dead_members.inject(0) {|r, enemy| r += enemy.exp(actor) }
      end

  32. Excuse me but I get an error on this script.
    Error-
    Script ‘Crystal Engine – Basic Module’ line 112: NameError occurred.
    undefined method `extract_save_contents’ for class `Module’

    Thanks if you know how to fix it! 🙂

  33. Uhh… I keep getting an error about the code. When you are available I shall tell you. But you removed my last comment and so I am just creating another one just in case you knew that it was easily fixable or it wasn’t. Last time I commented my name was “Felix”

  34. Sapph88

    So… I don’t know if this place is inactive or not, but… I’m using version 1.17 and, when I finish a battle, the game crashes and I get the error “uninitialized constant CRYSTAL::EXP”. I have no idea where the constant is supposed to be initialized and to what. I may be able to figure this out myself if I tinker with it a couple more days, but I would still appreciate some help so I don’t accidentally break it.

  35. Sephiron

    Found a solution to the CRYSTAL::EXP problem!
    Install this script: https://onedrive.live.com/prev?id=e2d867181608a2aa%21724&cid=E2D867181608A2AA&parId=e2d867181608a2aa%21695&group=0&v=TextFileEditor

    To make it work right outta the box, replace FORMULA with FORMULA = “(base_exp)” in that good ol’ script up there. Works like a charm.

  36. R

    Iv’e encountered this problem as well and it seems that this issue has just faded on this site.
    Has someone found a solution yet?

  37. cyberghost88philppines

    Nice Scripts… Thanks for this…

  38. I want to use these scripts, but they are way too glitchy. The Formula = solution does not solve the CRYSTAL::EXP problem in my script, and using this script with the other Crystal Engine scripts creates a wrong number of arguments (1 of 0) problem, that adding true, false to line 235 of Game_Player and 112 of DataManager doesn’t solve. If these scripts can’t even play nice with each other, how can I expect to use them with anything else? This is only with a cursory use of the scripts. I dread to think of what I’ll find if I actually get through these problems and actually start to implement other features.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: