Jump to content


Drara

Member Since 26 Jan 2010
Offline Last Active May 11 2013 03:48 PM

Topics I've Started

39Dll And Special Characters In Filenames

01 March 2013 - 03:48 PM

Hello community!

would be great if someone could help me. I'm using the fileopen, filewrite, etc Functions of the 39Dll v2.5 and apparently they doesn#t seem to work when characters like "Ä" or "Ü" (and so on) are beeing used as filenames.
They are just replaced by weird signs when a file is created for example and loading that file fails as well.

Is there any possibility to avoid that issue without temporary renaming?


Thank you very much in advance! :)

GML Codeeditor with Syntaxcheck v0.5

13 December 2012 - 08:02 PM

Hello Comunity,


this project is the attempt to write a full working GML-Spell checker in GML as well as an editor.
The idea is to enable you to have an own programming language in your GM Game. The User can produce code with this editor built in in an map-editor etc. while is executed then by using the event_add in the main part of the game.
The example has a text-editor for the code (which should be replaced though..) which contains high-lighting, an auto-completion (therefore you have to add all possible functions into a list - that works also like a white-list).

It contains also a real-time syntax checker for the code which will display error messages while you type.

An array which contains all code-elements also enables you to easily receive all variables, functions, etc. used in the code (for black-listing for example).

That's a screenshot of what it looks like right now:
Posted Image

Unfortunately the code is quite high-level and customization might be hard - yet I hope that the more expert users will be able to do something with it :)/> The draw-event has a sort of argument-structure which should simplify the usage in your game.

Download: http://host-a.net/u/...syntaxcheck.zip
If used, please credit me with "DragonGamer"

There are some issues yet which I could not correct yet for time reasons, I'm sorry:

- do-until loop as well as the switch statement are not implemented in the spellchecker and throw errors
- Arrays are not available yet - although they are half the way implemented but they throw errors
- the highlighting of multi-line strings is working awkwardly
- if-statements need the equation set in round brackets
- if an else-statement is used, you have to put the code after the if-equation into { and } brackets.
- possibly more less-noticeable problems with the syntax checker --> if someone finds such a problem, please tell me


So, have fun with it!

Draw whole 3D scene on a surface

24 November 2012 - 02:37 AM

Hello community

using GM 8.1 I made a scene in 3D using just some basic function and en-capsuling the entire thing in one event (the reason is that the 3D scene is only the background for the room) --> begin of the draw event starts the 3D mode together with lightning, etc. and after all the things are drawn, 3D mode is ended again and the perspective reset.
That works perfectly fine.
But now I need to draw that onto a surface.
Therefore I transferred the code into a step event and simply added  the surface_set_target and surface_reset functions with a window-sized surface right after 3d-mode begins and before it ends.

Unfortunately the surface appears to stay empty.

What did I oversee?
Thought surfaces and 3D mode would work now smoothly since surfaces have a z-buffer too now..


Any help would be very, very appreciated!

ThreadedDraw

16 October 2012 - 04:43 PM

Hello community,

here I can present you my second DLL: ThreadedDraw

It is a DLL to solve a pretty common problem in GM: Whenever a function or a loop is running, everything else is on halt, including drawing, etc.
This DLL allows you to draw sprites from GM's resource tree (or external ones as a strip in png format) onto the GM window, including animations, alpha channel and even color blending.
The clou is that it requires only one function to start such an animation and it will work independant until you call the stop-function.

In adition you are allowed to draw either relative to the GM window (so the sprite will follow the window automatically) or even draw outside as you can see:
Posted Image

The sprite will also stick to the windows-z order and disappear if you minimize.
In addition you are able to attach sprites to the mouse as well, creating reliable custom cursors.

Here is the download of a testfile, including the DLL: http://host-a.net/u/...hreadedDraw.zip

The source is open this time as well. Unfortunately not commented though, sorry: http://host-a.net/u/...Draw-source.zip


Hope someone finds an use for this! :)
Of course I'm also open to any feedback (especially of the code), requests related to this DLL and found bugs.

DLL (C++) detect whether the game window is minimi

12 October 2012 - 11:56 PM

Hello, community,

I'm working on a graphical DLL and need the ability to detect whether the window is minimized or not.
The window_handler() Funktion in GM gives one a number which can be turned into a hWND-handler. This also works right and I'm able to alter the GM-window perfectly.
Yet the funktion IsIconic(hwnd) in C++ is simply never turning true no matter whether the window is minimized or not...

Has anyone been stumbling across this problem before and has a hint how to solve that issue?

Thank you very much in advance!