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.
91
Issues Help Desk / Sprite_add crashes
« on: February 20, 2014, 10:52:45 am »
I have tried both versions of the sprite_add function and as soon as it's called it crashes the game.
background_add doesn't have any problems. I tried setting graphics engine to both OpenGL 1 and 3. I have tried changing up the parameters, nothing seems to matter.
Using portable exe from 2/18 if it helps.
Code: [Select]
spr_title = sprite_add(dataDir + "textures/title.png", 1, false, false, true, true, 0, 0);
spr_title = sprite_add(dataDir + "textures/title.png", 1, false, true, 0, 0);
(I did a file_exists on the path, it returned true)background_add doesn't have any problems. I tried setting graphics engine to both OpenGL 1 and 3. I have tried changing up the parameters, nothing seems to matter.
Using portable exe from 2/18 if it helps.
92
Issues Help Desk / Re: View ports screwed up in ENIGMA
« on: February 20, 2014, 10:25:02 am »
OK that is mostly a solution. I also had to manually offset the view_xview.
In GM "Keep aspect ratio" was still checked (not full scale), under the Windows tab, and it offset the view automatically.
In GM "Keep aspect ratio" was still checked (not full scale), under the Windows tab, and it offset the view automatically.
93
Issues Help Desk / Re: Odd Var Leak
« on: February 20, 2014, 10:06:35 am »
Leak was probably not a good word sorry. It seems more like a scope issue, wherein somewhere in the room code a var "w" is public to EDL.
94
Issues Help Desk / View ports screwed up in ENIGMA
« on: February 20, 2014, 02:26:58 am »
My setup:
64x64 sprite, assigned to obj. Obj has spacebar event with code:
Obj is in roughly center room. Room has default everything, except checked enable views and visible when game starts.
Expected: when spacebar is pressed, scaling viewport should cause screen to fill. What happens: who the hell knows.
Enigma: http://i.imgur.com/h8uEwAy.png
GM: http://i.imgur.com/e0agEzq.png
(GM has correct behavior)
64x64 sprite, assigned to obj. Obj has spacebar event with code:
Code: [Select]
view_wport[0] = 1280;
view_hport[0] = 720;
window_set_size(1280, 720);
Obj is in roughly center room. Room has default everything, except checked enable views and visible when game starts.
Expected: when spacebar is pressed, scaling viewport should cause screen to fill. What happens: who the hell knows.
Enigma: http://i.imgur.com/h8uEwAy.png
GM: http://i.imgur.com/e0agEzq.png
(GM has correct behavior)
95
Issues Help Desk / Odd Var Leak
« on: February 20, 2014, 01:30:03 am »
ENIGMA has a weird variable leak that had utterly confused me for a while. I narrowed it as best I could. Let me start by saying I honestly have no idea what is causing this problem. At all.
Reproduce steps:
Create a script with code:
Create a room, and in the init code, call the script.
Create an object with an event that calls the script in the room (e.g. spacebar up event).
You'll notice when called from the room creation code, the output is something like "777, 1080, 1080"
But when called from the object, it's "777, 777, 1080"
Somehow in the room creation code the variable w is being overwritten by either h or display_get_height(). I thought this might be a case that somewhere in the room there's an internal variable named w that is fucking up my previously set value.
IDK PLZ FIX THIS IS WIGGIN ME OUT MAN
I tried to look at ENIGMA's code myself but I couldn't find anything immediately obvious in window_set_size or display_get_height so it's probably deeper in ENIGMA's internals than I care to go.
I was bored so I also uploaded a bare minimum example of this sorcery happening: https://dl.dropboxusercontent.com/u/1215621/whatthescope.egm
p.s. using the windows exe uploaded on 2/18 idk what revision that is
Reproduce steps:
Create a script with code:
Code: [Select]
w = 777;
show_message("Width: "+string(w));
h = display_get_height();
show_message("Width: "+string(w));
show_message("Height: "+string(h));
Create a room, and in the init code, call the script.
Create an object with an event that calls the script in the room (e.g. spacebar up event).
You'll notice when called from the room creation code, the output is something like "777, 1080, 1080"
But when called from the object, it's "777, 777, 1080"
Somehow in the room creation code the variable w is being overwritten by either h or display_get_height(). I thought this might be a case that somewhere in the room there's an internal variable named w that is fucking up my previously set value.
IDK PLZ FIX THIS IS WIGGIN ME OUT MAN
I tried to look at ENIGMA's code myself but I couldn't find anything immediately obvious in window_set_size or display_get_height so it's probably deeper in ENIGMA's internals than I care to go.
I was bored so I also uploaded a bare minimum example of this sorcery happening: https://dl.dropboxusercontent.com/u/1215621/whatthescope.egm
p.s. using the windows exe uploaded on 2/18 idk what revision that is
96
Proposals / Re: Device checking related functions for game compatibility
« on: February 16, 2014, 12:51:26 am »
The point of using one (or many) large files is usually to get better disk throughput.
Also Darkstar, why would you need to have the files uncompress / unpack to the disk? Why can't you uncompress / unpack directly into memory? (Well, maybe this is an issue with Enigma actually)
Also Darkstar, why would you need to have the files uncompress / unpack to the disk? Why can't you uncompress / unpack directly into memory? (Well, maybe this is an issue with Enigma actually)
97
ALLCAPS BOARD / Re: I've quit using enigma and so should you!
« on: February 13, 2014, 01:27:16 pm »
Cheese come on man you gotta start your own engine like we talked about.
98
General ENIGMA / Re: The new GL3
« on: February 07, 2014, 01:30:31 am »
Maybe in the future Enigma could add deferred rendering and per-pixel lighting Good work on the improvements so far!
99
Works in Progress / Re: Dungeon Blabber
« on: February 06, 2014, 06:02:02 pm »
Do you have a decent GPU? Most 3d programs will make extensive use of it. Other than that I have no idea.
100
Works in Progress / Re: Dungeon Blabber
« on: February 06, 2014, 04:37:35 pm »
Hours to render a single frame? Either your computer is sub-par or you've got the quality settings jacked to heaven.
Also in the latest demo some of it looks unfinished (untextured and more polygonal than smooth). Not really a problem being a demo I guess. Interested to see how this ends up playing.
Also in the latest demo some of it looks unfinished (untextured and more polygonal than smooth). Not really a problem being a demo I guess. Interested to see how this ends up playing.
101
Issues Help Desk / Re: Texturing in 3d
« on: February 04, 2014, 06:26:49 pm »
Ah, yeah that was such a simple solution. Appears to be working fine once I set the color. Thanks.
102
Issues Help Desk / Texturing in 3d
« on: February 04, 2014, 04:53:56 pm »
I decided to try out loading in a 3d model (.obj) and it draws the model just fine, but it draws it as black. Are UV's not imported from .obj models? That's the only reason I can think of for the texture not showing. I tried drawing it with light disabled and with a point light defined and lighting enabled.
Better might be to ask if there is a .obj example somewhere so I can see if I'm drawing it incorrectly or if my model was exported incorrectly, or if it's a problem with Enigma.
Better might be to ask if there is a .obj example somewhere so I can see if I'm drawing it incorrectly or if my model was exported incorrectly, or if it's a problem with Enigma.
103
Proposals / Re: Device checking related functions for game compatibility
« on: January 30, 2014, 11:02:05 am »
On Windows, there is disk_free and disk_size. You can get the version of Windows from the registry under HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion".
However, OS / disk space seems like a silly thing to bother checking. The program would probably crash before it could run those checks if it was on an unsupported OS, and if the program is already downloaded than disk space is a moot point unless you plan to uncompress, create, or download more data.
However, OS / disk space seems like a silly thing to bother checking. The program would probably crash before it could run those checks if it was on an unsupported OS, and if the program is already downloaded than disk space is a moot point unless you plan to uncompress, create, or download more data.
104
Issues Help Desk / No inheritance?
« on: January 29, 2014, 12:19:48 pm »
Does enigma not support inheritance or is it broken?
obj_0 has spacebar even that shows message
obj_1 has object 0 parent, no events.
Place obj_1 into room, when game is run spacebar should still show message (it does not in Enigma). Works fine in GM.
obj_0 has spacebar even that shows message
obj_1 has object 0 parent, no events.
Place obj_1 into room, when game is run spacebar should still show message (it does not in Enigma). Works fine in GM.
105
Issues Help Desk / Re: LGM -> Enigma link broken
« on: January 28, 2014, 06:50:27 pm »
Windows 8.1, 64 bit.