[VXACE] All script calls erroring out

Lucksmith

Warper
Member
Joined
Sep 25, 2017
Messages
3
Reaction score
4
First Language
English
Primarily Uses
RMVXA
Hi All,

Odd problem and I feel like I am missing something simple.

I have a fresh install of RPGmaker, no plugins, and a fresh game.

My only event is an "on-action" to call a script to open a webpage, but it seems like no matter what I put in, the game crashes out in testing.

Using:
window.open('https://github.com/nwjs/nw.js', '_blank');

Gives me:
Error Code.png

And nw.Shell.openExternal("example.com");

Gives me:
Error 2.png

I've gotten this to work painlessly before, so what incredibly basic thing am I missing here, lol.

Thank you!
 

Lucksmith

Warper
Member
Joined
Sep 25, 2017
Messages
3
Reaction score
4
First Language
English
Primarily Uses
RMVXA
Wow... It clearly has been too long. I meant to be working in MV and installed VX ACE from my Steam library.

Can someone delete this thread, or just leave it up as a testament to not paying attention, lol.
 

cremnophobia

Veteran
Veteran
Joined
Dec 10, 2013
Messages
224
Reaction score
100
Primarily Uses
They're for MV. You're using VX Ace. Try this:

Ruby:
se = Win32API.new('shell32', 'ShellExecuteA', 'PPPPPI', 'I')
r = se.call(nil, 'open', 'https://rpgmakerweb.com', nil, nil, 1)
r > 32 or msgbox "Failed to open the website (error code: #{r})"
 

Latest Threads

Latest Posts

Latest Profile Posts

Jeez...
I finally decide, after several ppl asking me to, to create a gamethread about project M... And my internet craps out on me halfway through the process :(
making my first game is like trying to stuff all my experience with old games into one
so its slow and painful when i dont get it right... i bet the next game is gonna be finished earlier!
When you don't find any time to work... :kaocry:
First Ten Minutes of my Caretaker inspired game

Finally, I got a good Gmail message [from smg5urded]
"This game does look a bit plain, but, I'm sure this does not destroy the experience as a whole. Monsters fit your style of game-play, mapping looks crude but I'm sure you can make it better if you do a remake of Forgotten Eclipse"

Forum statistics

Threads
110,397
Messages
1,052,965
Members
143,456
Latest member
DavishKK
Top