Grid Sage Forums

Grid Sage Forums

  • November 21, 2024, 03:48:29 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

LINKS: Website | Steam | Wiki

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - 0x41414141

Pages: [1]
1
Everything REXPaint / Re: How to use rex_spite.js?
« on: April 12, 2018, 01:45:13 PM »
Ah, thanks! I see the file is slightly different, but it'll do.

2
Everything REXPaint / Re: How to use rex_spite.js?
« on: April 11, 2018, 09:51:08 PM »
I tried

fs.readFile('./test.xp', function read(err,data) {RexSprite(data)})

Now I get no errors, but also no output.

3
Everything REXPaint / How to use rex_spite.js?
« on: April 11, 2018, 09:43:27 PM »
I'm a beginner with node.js, but I god I fucking hate it when developers include no example or comments in their code.

I'm trying to get this script to work, but it keeps throwing the error
"TypeError: Invalid non-string/buffer chunk"

Here is my code. test.xp is the xp file I want to display.
RexSprite(fs.createReadStream('test.xp'))

http://www.gridsagegames.com/blogs/files/rex_sprite.js

Pages: [1]