Jump to content


Photo

SystemStackError occurs when new Actors are being pushed onto Actors Data.

Ace Data SystemStackError Might be an event issue

  • Please log in to reply
2 replies to this topic

#1 PK8

PK8

    Close the window.

  • Members
  • 455 posts
  • LocationStanding on the backs of angels
  • Primarily UsesRMXP
  • First LanguageEnglish

Posted 09 April 2012 - 07:14 PM

Just ran into a problem. So I'm trying to convert the Database Limit Breaker event port I made (based on Woratana's DLB) for both XP/VX to Ace and I managed to copy just about everything from VX to Ace alright though I had to make a few changes to my code due to differences between XP/VX and Ace.

Anyway, so I'm trying to attempt breaking Ace's database limits but I keep running into this SystemStackError which I'm sure occurs right around the line where I'm pushing new actors onto a variable that stores the Actors data. I have no idea on how to get around that error.

Here's the code. In case anybody's wondering why it looks that way, it's a script call in events. And the 9999 is just a replacement for a variable I had there.

Edit:
if (9999 >= 1)
v = 9999
data = load_data("Data/Actors.rvdata2")
if !(data.size > v) and !(
(v - (data.size - 1)) <= 0)
data_new = Array.new(v-(data.size-1)) {
RPG::Actor.new }
data.push *data_new
save_data(data, 'Data/Actors.rvdata2')
end
end

Edit 2: This is looking to be more of an eventing-related issue. I tried the above call in the script editor which worked, whereas sticking it in a script call event command didn't.

Edited by PK8, 10 April 2012 - 11:38 AM.

Single-handedly putting an end to the monopolisation of the scripting forums. Proud member of The Underground and JIFZ-NFPZ.
pk8.png fb.png tw.png yt.png

Have you ever wanted to attach switches, variables, and various information onto your Actors, Events, Classes, Skills, Armors, Items, Weapons, and Skills? Now you can. The Self Data Suite -- The Most Extensive Set of Scripts Around (also available for RPG Maker XP and VX)

#2 Kread-EX

Kread-EX

    You're all bakas

  • Members
  • 598 posts
  • Primarily UsesRMVX Ace
  • First LanguageFrench

Posted 10 April 2012 - 03:21 AM

This line
data.push *data_new
You're appending an array to another array and flattening the resulting array of arrays at the same time. Dunno exactly why but it's apparently too much for the eval method used by the event interpreter.

Do this instead:
data.push(data_new)
data.flatten!
I tested it and it doesn't raise a stack error.
  • PK8 likes this

#3 PK8

PK8

    Close the window.

  • Members
  • 455 posts
  • LocationStanding on the backs of angels
  • Primarily UsesRMXP
  • First LanguageEnglish

Posted 10 April 2012 - 11:46 AM

Whoa, it worked! Thanks a ton, man.
Single-handedly putting an end to the monopolisation of the scripting forums. Proud member of The Underground and JIFZ-NFPZ.
pk8.png fb.png tw.png yt.png

Have you ever wanted to attach switches, variables, and various information onto your Actors, Events, Classes, Skills, Armors, Items, Weapons, and Skills? Now you can. The Self Data Suite -- The Most Extensive Set of Scripts Around (also available for RPG Maker XP and VX)





Also tagged with one or more of these keywords: Ace, Data, SystemStackError, Might be an event issue

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users