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 - kkg

Pages: [1] 2 3 ... 6
1
Announcements / Re: wxENIGMA Crossplatform IDE in Code::Blocks
« on: March 15, 2013, 09:52:37 AM »
But did anyone actually wrote plugins for it? I know like two plugins for LGM. One is ENIGMA and one is that allows compiling to GM (by adding the runner to data).
I frequently wrote my own since I'm a Java programmer, but they were never really suitable for public use.

the second for material surfaces like Unity3D.
You mean substances?

2
Announcements / Re: wxENIGMA Crossplatform IDE in Code::Blocks
« on: March 14, 2013, 03:18:37 PM »
The atom-based logo looks terrible.
Rocket looking one is okay for an SVG, can't disagree with it too much.

IDEs don't bother me too much these days, all I ask for is proper plugin support. LGM gave me an accessible way to write plugins for the IDE which adds a sick layer of customisability.

3
Announcements / Re: Christmas Plans
« on: December 29, 2012, 09:45:07 PM »
they all look terrible

4
Announcements / Re: New Hardware
« on: August 20, 2011, 11:52:54 AM »
Awesome news, I got sick of literally being able to fetch a beverage whilst waiting for a page to load.
Ta for paying for the site, guys ^_^

5
Issues Help Desk / MySQL - constant connection
« on: June 01, 2011, 12:27:02 PM »
Just a quick question regarding having a server that extracts user information from / writes information to a database.
Should I practice:
1) Opening a connection when the server starts, close the connection when the server closes
2) Open a connection only when the database needs to be used (possibly frequently) and close it immediately

I'm not really aware of the raw behind a connection with a SQL database, so I'm not sure of the security consequences etc etc
I would assume 1) is a lot faster also.

Note: If you are offering a suggestion, could you offer it for two different situations: where the database is local to the server and where the database is hosted online?

Thanks yy0y0y0 xoxoxo

6
General ENIGMA / Re: Enigma status
« on: May 29, 2011, 12:19:52 PM »
I wish I was clever enough to do these things :D

Anyway those are some really neat statistics TGMG, and show that ENIGMA is really progressing ^_^V

7
Proposals / Re: EGM format: Allow resources in other folders?
« on: May 03, 2011, 09:10:42 PM »
I vote for forced segregation because in my mind, it appears to be simpler.

8
Announcements / Re: Happenings
« on: March 21, 2011, 03:36:17 AM »
I believe the Announcements needs a new thread. After two months of nothing being posted on the main page of the website, newcomers will be like NAH PROJECT'S DEAD LATEERZZZRDS

9
Announcements / Re: Happenings
« on: February 20, 2011, 09:36:42 AM »
I'm still around, just busy organising university stuff :P
You only hear from me most when there's a problem with ENIGMA or a new major release needs to be tested :P

10
Function Peer Review / Re: [GML] Word-breaking, multi-line RPG chat script
« on: February 12, 2011, 12:11:11 PM »
Particularly because the game will mostly external resources in order to update it without needing to provide a new executable. So a function for automatically deciphering these strings for me is pretty necessary.

edit: It's also helpful because I have a window manager that you are able to resize at will (chat, quest logs etc), and it's always good to have the text line-break etc accordingly to the window

11
Function Peer Review / [GML] Word-breaking, multi-line RPG chat script
« on: February 12, 2011, 01:52:29 AM »
Okay. So I have a function here that I made by myself, but I have a feeling it is unhealthily inefficient.
Basically, It is a function that takes the string you give it and the maximum length of characters allowed on a line, and breaks the message up into segments that will fit into two lines. If it goes over two lines of text, it creates another portion of it that will carry over to the next "message".
Example:
Max allowed characters: 10
String = "Here is a typical message."
This will output:
string1: "Here is a#typical"
string2: "message."

Typical was placed on the second line because although 10 characters had not been reached on the first line, it was a whole word in itself (makes sense obviously)

ANYWAY, here is the script I'm using (feel free to optimise it and/or write your own in replacement :p)
Code: (GML) [Select]
///scr_text_filter_word(string text, real character_line_limit)
text = argument0;
var maxlength, textlength, usestring, usetext, i, currentpos, endword, newline, attemptbreak;
maxlength = argument1;
usetext = text;
usestring = "";
done = 0;
ii = 0;
currentpos = 1;
endword = 0;
newline = 1;
attemptbreak=0;

while (done == 0) {
    attemptbreak=0;
    if(string_length(usetext) > maxlength) {
        for (i = 1; i <= string_length(usetext); i += 1) {
            if(attemptbreak == 1) break;
            currentpos = i;
            if(string_char_at(usetext,i) == " ") {
                for (iii = 1; iii < string_length(usetext)-currentpos; i+=1) {
                    if(string_char_at(usetext,i+iii) == " ") {
                        endword = iii;
                        break;
                    }
                }
                if(currentpos + endword > maxlength) {
                    var newtext;
                    newtext = string_copy(usetext,1,currentpos);
                    if(newline == 1) {
                        global.g_showmessage[ii+1] = newtext;
                        ii+=1;
                        newline=0;
                    }
                    else {
                        newtext = string_insert("#",newtext,1);
                        global.g_showmessage[ii] = global.g_showmessage[ii]+newtext;
                        newline=1;
                    }
                    usetext = string_copy(usetext,currentpos+1,string_length(usetext)-currentpos);
                    attemptbreak = 1;
                }
            }
                               
        }
    }
    else {
        if(newline == 1) {
            global.g_showmessage[ii+1] = usetext;
            ii+=1;
        }
        else {
            usetext = string_insert("#",usetext,1);
            global.g_showmessage[ii] = global.g_showmessage[ii]+usetext;
        }
                       
        done = 1;
        global.g_msgtot = ii;
    }
}

12
Announcements / Re: Happenings
« on: February 08, 2011, 03:35:23 AM »
As far as I'm aware, Josh is still making sure that the installer version is running smoothly.
That, and school :P

13
Announcements / Re: Happenings
« on: February 03, 2011, 11:06:00 AM »
MrGriggs, I know how to copy text from cmd, it's just that it wasnt bringing up anything upon right-click. I got that sorted out though (just closed LGM which ended the cmd session). It's all already been discussed with Josh anywh0000000

14
Announcements / Re: Happenings
« on: February 02, 2011, 11:39:41 AM »
Okay!
I decided to update my SVN copy of ENIGMA. Upon finishing the update, I ran enigma.exe.
First off, it gave this error message: http://enigma.pastebin.com/BxB0nMk7
So I got a new enigma.exe and replaced the current one. It gave me the "I'VE ALREADY FOUND MINGW LOL, USE DIS?" I select yes. The console then proceeds to do more g++ shit, but then fails.
Because the piece of shit won't let me highlight for some reason, I had to take a screenshot, hopefully it's enough info: http://img34.imageshack.us/img34/9272/enigmaerror.png

Note: The installer-version works fine :S

15
Announcements / Re: Happenings
« on: February 02, 2011, 02:38:58 AM »
Extracted. Ran enigma.exe, it found the original MinGW folder that the old installation installed fine, and I selected yes to use that.
It then was like DUN HAVE THE LIBARIES BRAH, so I selected "Stable" and let it do it's thing, which it then updated to r641 and exited.
When I started it up again, it did a whole lot of shit concerning g++, but once that finished it all worked fine.

Win7 x64

Pages: [1] 2 3 ... 6