Author Topic: [XP] Journal  (Read 25006 times)

Offline Cates

  • Trained Member
  • *
  • Posts: 13
  • LV: 1
    • View Profile
Re: [XP] Journal
« Reply #20 on: December 30, 2010, 08:14:26 AM »
Hi ForeverZer0.

This is a great script! Exactly what I've been looking for. Easy to configure and looks great!

However, something odd is happening . . . when a weapon, armor, shield, etc. is unequipped, it vanishes, and nothing else shows up that is available for the player to equip--even the sword/shield/etc. you just unequipped.

For instance, I started a new game just by copying and pasting the journal script into the editor. No other scripts involved in this test. I started the game, unequipped Aluxes's bronze sword and it vanished. It can no longer be seen on the equip screen. You can't see it even on the "item" menu.

I'm a novice, and managed to find a way to add a your journal to the default menu before I realized what was happening. That's when I tested it on a generic game start and still saw the same "vanishing de-equipped item" effect.

Am I doing something wrong?

Offline ForeverZer0

  • CP's Pedophile
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3255
  • LV: 298
  • Gender: Male
  • Remember you are unique, just like everyone else.
    • View Profile
Re: [XP] Journal
« Reply #21 on: December 31, 2010, 02:43:53 AM »
I'm looking into right now. I just tested it real quick and had the same problem.  :shy:

EDIT:

* Updates to 2.1 *
Fixed the bug, I used the wrong method name when aliasing "gain_weapon" in Game_Party.
That was the only change made, so if you don't feel like repasting the script, you can easily just make the edit yourself. You simply need to change one word. Find the "Game_Party" section in the script and look at the first method, which looks like this:
Code: [Select]
  alias zer0_auto_add_weapon gain_item
  def gain_weapon(weapon_id, n)
    # Unlock weapon ID if recieved.
    Journal.add_weapon(weapon_id) if Journal::AUTO_WEAPONS
    zer0_auto_add_weapon(weapon_id, n)
  end

You simply need to change the "gain_item" in the first line to "gain_weapon".
Code: [Select]
alias zer0_auto_add_weapon gain_weapon
That should do it.  ;)
« Last Edit: December 31, 2010, 02:58:41 AM by ForeverZer0 »
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Offline Cates

  • Trained Member
  • *
  • Posts: 13
  • LV: 1
    • View Profile
Re: [XP] Journal
« Reply #22 on: December 31, 2010, 07:04:42 AM »
Thanks for the fix - that did it for the weapons, but not for the other equipment slots. Sorry to be a pain!

Offline ForeverZer0

  • CP's Pedophile
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3255
  • LV: 298
  • Gender: Male
  • Remember you are unique, just like everyone else.
    • View Profile
Re: [XP] Journal
« Reply #23 on: December 31, 2010, 08:09:07 AM »
* Updates to 2.2 *

Your not being a pain.  I appreciate you letting me know.
I'm the idiot who didn't look a few lines below the last bug.
The script is updated, but once again, if you want to change it yourself, do this.

Find the Game_Party class within the script, and find the aliased method "gain_armor" within it.
Change the line that reads:
Code: [Select]
zer0_auto_add_weapon(weapon_id, n)and change it to...
Code: [Select]
zer0_auto_add_armor(weapon_id, n)
Sorry for all the little bugs.

@cates:
Thanks a bunch for pointing it out!  ;)

I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Offline Cates

  • Trained Member
  • *
  • Posts: 13
  • LV: 1
    • View Profile
Re: [XP] Journal
« Reply #24 on: December 31, 2010, 09:16:14 AM »
OK! That error seems to be fixed.

Here's another issue, when I have the auto updates set to "true" in the config of the script, I'm getting a method error on the line that relates to whatever equipment I'm trying to change. (such as 332 for weapons).

This was happening with the default items equipped on Aluxes and the gang, so I thought maybe that's because I hadn't defined anything in the lower journal entries.  So, I deleted everyone but aluxes and gave him only a single sword. I had an event call that journal addition and it was so far, so good. Then I added another event to give him a second sword to test the auto-update, the method error came up again.

When I set the auto updates to false, and called the scripts for each of those two individual swords, everything worked smoothly. Let me know if you'd like me to upload my little testing demo for you to check out.

Thanks for your quick responses! This is such a useful and versatile script!

Offline ForeverZer0

  • CP's Pedophile
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3255
  • LV: 298
  • Gender: Male
  • Remember you are unique, just like everyone else.
    • View Profile
Re: [XP] Journal
« Reply #25 on: December 31, 2010, 09:35:22 AM »
I found the problem. It occurs when an ID of 0 gets passed as the weapon ID. I'm fixing it now.

EDIT::

* update to 2.3 *

...and yet another bug fixed. I didn't think that if the player unequips a weapon, it passes an ID of 0 to the array, which throws an error when the game attempts to see what weapon/armor that is. I couldn't get the error to repeat at first because I kept switching back and forth between two weapons, and not just straight unequipping to nothing.

Either way, another big thanks and a level up to Cates for pointing it out.  :D
« Last Edit: December 31, 2010, 09:47:25 AM by ForeverZer0 »
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Offline Cates

  • Trained Member
  • *
  • Posts: 13
  • LV: 1
    • View Profile
Re: [XP] Journal
« Reply #26 on: January 01, 2011, 09:46:53 AM »
Awesome, man. It now works perfectly. Thanks!

Offline elmangakac

  • Transcended Spirit
  • ***
  • Posts: 171
  • LV: -3
    • View Profile
    • Cesar&Friends (My Manga in Spanish)
Re: [XP] Journal
« Reply #27 on: March 02, 2011, 03:24:38 AM »
GIves me an error:

????????? "Journal" 396???? No Method Error????

private method "split" called for Nil:Class


 :'(

Offline ForeverZer0

  • CP's Pedophile
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3255
  • LV: 298
  • Gender: Male
  • Remember you are unique, just like everyone else.
    • View Profile
Re: [XP] Journal
« Reply #28 on: March 02, 2011, 03:48:37 AM »
You're not configuring it properly. From the sounds of it, something in one of the ?????_bio(id) methods is not set up right. Basically this method needs a string passed to it, which is not being done if you're getting that error. Since the string is retrieved from the config, this is your likely problem.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Offline elmangakac

  • Transcended Spirit
  • ***
  • Posts: 171
  • LV: -3
    • View Profile
    • Cesar&Friends (My Manga in Spanish)
Re: [XP] Journal
« Reply #29 on: March 02, 2011, 04:02:20 AM »
I understand it!!! That is because i change the words... (My game its spanish) and i change the word "People" by "Gente" and also the others... I delete my script with spanish words and i put the original and works good....

Thank you very much...

Offline elmangakac

  • Transcended Spirit
  • ***
  • Posts: 171
  • LV: -3
    • View Profile
    • Cesar&Friends (My Manga in Spanish)
Re: [XP] Journal
« Reply #30 on: March 18, 2011, 07:18:02 AM »
Exist a limit of elements in the list? Or can shows all the items... Because just shows some items and not all that i get.... O_O ?

Offline OracleGames

  • Transcended Spirit
  • ***
  • Posts: 111
  • LV: 2
    • View Profile
Re: [XP] Journaler
« Reply #31 on: March 25, 2011, 02:17:10 AM »
Hey Foreverzer0, it would be really nice to add this to the game menu, is it even possible?

Offline ForeverZer0

  • CP's Pedophile
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3255
  • LV: 298
  • Gender: Male
  • Remember you are unique, just like everyone else.
    • View Profile
Re: [XP] Journal
« Reply #32 on: March 25, 2011, 02:53:21 AM »
Yes, you can link it to a menu option the same as any any other scene. The only edit that will need to be made is it to change the scene it returns to after exit. At the bottom of the script find the line that reads:
Code: [Select]
$scene = Scene_Map.newand change the scene to Scene_Map or whatever scene you would like for it to go to after it ends.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Offline TJ01

  • Trained Member
  • *
  • Posts: 14
  • LV: 0
    • View Profile
Re: [XP] Journal
« Reply #33 on: April 07, 2011, 05:39:13 PM »
I`ve got a question, can it be done, that you can remove an entry?

Offline ForeverZer0

  • CP's Pedophile
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3255
  • LV: 298
  • Gender: Male
  • Remember you are unique, just like everyone else.
    • View Profile
Re: [XP] Journal
« Reply #34 on: April 08, 2011, 01:16:09 AM »
You can, though there is no method to do it easily by default. I wrote this code real quick, its untested, but should do the job. Just add it to your scripts any old where.

(click to show/hide)

Use the methods the same as you would with Journal.add_PARAMETER(id), except use the word "delete", like this:

Code: [Select]
Journal.delete_weapon(ID)
Let me know how that works out for you.  ;)

I made add it to the script when I'm not feeling so lazy.
« Last Edit: April 08, 2011, 01:20:40 AM by ForeverZer0 »
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Offline nathmatt

  • Chaos User
  • ******
  • Posts: 1289
  • LV: 114
  • Gender: Male
  • The Add_on King
    • View Profile
    • Nathmatt Productions
Re: [XP] Journal
« Reply #35 on: April 08, 2011, 01:19:18 AM »
(click to show/hide)

use this lol just fixed that

(click to show/hide)
« Last Edit: April 08, 2011, 01:21:04 AM by nathmatt »
Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script
(click to show/hide)

Offline ForeverZer0

  • CP's Pedophile
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3255
  • LV: 298
  • Gender: Male
  • Remember you are unique, just like everyone else.
    • View Profile
Re: [XP] Journal
« Reply #36 on: April 08, 2011, 01:21:44 AM »
 :P
Thanks, nathmatt.

I just edited the "add" methods real fast, apparently I did that one wrong. Fixed now.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Offline TJ01

  • Trained Member
  • *
  • Posts: 14
  • LV: 0
    • View Profile
Re: [XP] Journal
« Reply #37 on: April 08, 2011, 04:18:18 PM »
Jeah, it works, thank you!
But if I call the Journey, there comes a warning message, like them from windows:
(click to show/hide)
Before, there is an other just with armors.

Offline elmangakac

  • Transcended Spirit
  • ***
  • Posts: 171
  • LV: -3
    • View Profile
    • Cesar&Friends (My Manga in Spanish)
Re: [XP] Journal
« Reply #38 on: April 10, 2011, 11:46:07 PM »
I have the same "window" problem O:O

Offline ForeverZer0

  • CP's Pedophile
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3255
  • LV: 298
  • Gender: Male
  • Remember you are unique, just like everyone else.
    • View Profile
Re: [XP] Journal
« Reply #39 on: April 11, 2011, 12:16:53 AM »
Okay, I fixed that.
I had accidentally left a few lines in it that were there for debugging it.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.