Jump to content

Recommended Posts

Puzzle Studio.. is almost cross platform :-)

I removed all the windows-specific stuff.

Now just need to

make a replacement for the timer,

make a file browser

iron out some of the bugs

Then I'll make another release :-)

 

Something in my image loading code is crashing the program... I wonder what it is..

Share this post


Link to post
Share on other sites

What is this timer?  Is it a way to set a time limit for the levels?

 

And why do you need to make a file browser?  Can't you make it use the file browser that comes pre-installed with the operating system?

Share this post


Link to post
Share on other sites

What is this timer?  Is it a way to set a time limit for the levels?

 

And why do you need to make a file browser?  Can't you make it use the file browser that comes pre-installed with the operating system?

 

The timer calls a function every 10 miliseconds so the game will run the same speed even if your computer is faster or slower.

 

In order to make the code portable I need to add cross-platform code for the file browser and dialog boxes.

Share this post


Link to post
Share on other sites

The timer calls a function every 10 miliseconds so the game will run the same speed even if your computer is faster or slower.

 

In order to make the code portable I need to add cross-platform code for the file browser and dialog boxes.

That timer sounds like a really nice feature!

 

I really didn't think that porting the game would be so hard...

Share this post


Link to post
Share on other sites

I don't understand why I can't move right in Puzzle Studio at all. Is this a bug or has it not been coded into the game yet?

I have the same problem. Nothing happens when I press the 'right' arrow key.

Share this post


Link to post
Share on other sites

I have the same problem. Nothing happens when I press the 'right' arrow key.

What keyboard layout do you have? Mine is US (English).

Share this post


Link to post
Share on other sites

I just can't figure out this error:

¼p: [string "¼..."]:1: '=' expected near 'char(27)'

Aah, figured out why.

Lua doesn't like unicode.

 

 

Also, can't figure out why I can't get text to properly render: https://i.imgbomb.com/3QYwR.png

 

 

And I still need a timer. Ugh windows!

Share this post


Link to post
Share on other sites

Well, I now have a working timer.

 

But now I am getting this error e_e after I enable GL debugging...

 

render(): ps/library/gl.lua:43: glEnd: GL_INVALID_OPERATION: The specified operation is not allowed in the current state.

 

Man, these vague errors.

Share this post


Link to post
Share on other sites

Okay, I figured out why I am getting OpenGL errors.

 

I need to add these code:

glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 2);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_ANY_PROFILE);

glfwWindowHint(GLFW_RESIZABLE, GL_FALSE);

//then create GLFW window

I reformatted my Windows XP computer (it was getting very slow) so updates may not come in a while.

Share this post


Link to post
Share on other sites

Okay, I have archived the yahoo group message and files.

 

I just need to clean up the messages (ugly yahoo interface!!!!!) then upload.

Share this post


Link to post
Share on other sites

Looks like I'll have to learn a whole new rendering system...

 

GLFW error: NSGL: The targeted version of OS X only supports OpenGL 3.2 and later versions if they are forward-compatible

Share this post


Link to post
Share on other sites

Okay, I tried Puzzle Studio in Wine, and now I have this right arrow key problem...

How to fix, how to fix...

 

EDIT:Fixed the problem!

Share this post


Link to post
Share on other sites

I know it's been a while but I'd still like to work on the graphics a little. Would it be possible to use some of the graphics from TileWorld? I'm talking mostly about the enemies here. I'd like to make new graphics for other things like doors, and green slime.

Also the player character, I'd like to make my own but don't garentee that will work out. Using the tileworld graphic would be really nice and easy.

I hope your still working on this.

Share this post


Link to post
Share on other sites

I know it's been a while but I'd still like to work on the graphics a little. Would it be possible to use some of the graphics from TileWorld? I'm talking mostly about the enemies here. I'd like to make new graphics for other things like doors, and green slime.

Also the player character, I'd like to make my own but don't garentee that will work out. Using the tileworld graphic would be really nice and easy.

I hope your still working on this.

I'm still working on this, I'm cleaning up the code right now (however school started so it may take longer)

Share this post


Link to post
Share on other sites

All right, I'm back, and I have cleaned up the Puzzle Studio code quite a bit, woo~!

WIP features:

 Audio loads faster

 Cross Platform (play on Linux or Mac)

 Multiple levels in one file

 Configure file

 High score saving system

 Convert chips.dat into a Puzzle Studio level file (Chuck's Challenge can't do this!)

 A lot of stuff moved out of the engine and into the .lua files

 

This should make for a nice, nice treat!

 

Also, I have been reading the yahoo mailing list archives, couldn't see if it was released into the public domain, released under a license such as BSD/GPL, or etc.

Share this post


Link to post
Share on other sites

Feature roundup:

  • JSON format now used for level saving (instead of Lua), safer and faster
  • Most of the old OpenGL functions have been removed (bye bye glBegin!)
  • Removed music (it just made the program load longer)
  • More stuff removed from the engine and into the .lua files
  • GLU removed
  • Win32 functions mostly removed (still got the message boxes and the file chooser)
  • Switched to GLFW
  • Now requires Freetype (no longer uses Win32 font functions)
  • Stopped using strings for the directions, so you won't get the bug where you can't go right anymore
  • "Further improvements to overall system stability and other minor adjustments have been made to enhance the user experience"

Todo:

  • Multiple levels in one file (aka "levelset")
  • Fix crashing bug on Mac

This release isn't out yet, because I need to test it more.

Share this post


Link to post
Share on other sites

What will happen to Puzzle Studio now that CC2 is going to get released?

Don't worry, I'm still working on it in my spare time :-)

I implemented most of the CC2 elements now, but I want to make sure it works on Windows, Mac and Linux (since I'm programming it entirely in Lua (with ffi) now, no more native code)

 

Also, I have a Chip's Challenge level importer, but I'm not going to release that yet.

 

 

Oh, and I'm going to push out an bugfixed release, which fixes problems moving east.

I'll only put out bugfixed releases, at least for the time being.

 

Edit: here's the bugfixed release: https://github.com/uyjulian/PuzzleStudio/releases/download/v1.1/PuzzleStudio.zip

  • Upvote 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×