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.
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 »
871
Issues Help Desk / Re: How to use cyrillic fonts?
« on: February 19, 2014, 10:59:16 am »Quote
I'd be perfectly fine if ENIGMA just rendered all character ranges.I don't think you understood what Josh meant by unicode. Unicode has 110187 characters... do you really think it will be practical to render them all on one texture? Even if on average one character would be 8x8 pixels (tightly packed), it would still end up 7051968 pixels and that is a minimum 2656x2656 texture, probably rounded up to 4096x4096. Maybe one texture like that would be possible. But most usually you just require certain ranges.
Quote
Is it literally "Привет, мир!"?Probably as that is just "hello world" in russian. The first screenshot is from GM where it is drawn correctly.
Quote
but first we need to know how you as a user specify you want a given range.GM also still used 0-255 ASCII as far as I know. In GM8 it just had different charsets as different fonts. So while in LGM I have "Arial", in GM I could choose "Arial CYR", "Arial Baltic", "Arial Greek" and so on. In newer GM I think they just have a dropdown list for that. So to fix basic problems with charsets you could just still use ASCII. The ENIGMA screenshot does seem to show several more characters than the original string. That leads me to believe it is still parsed as ASCII while the coding is in utf.
872
Issues Help Desk / Re: How to use cyrillic fonts?
« on: February 19, 2014, 07:54:17 am »
I don't know if extended ASCII table works in LGM and ENIGMA. I don't think it does. If I needed something outside basic ASCII I ended up making a custom font. But it's mostly an LGM issue. There needs to be a way to change coding type in LGM.
873
Off-Topic / Re: Studio Deprecating iOS In Game Advertisements
« on: February 18, 2014, 07:44:46 pm »
We would probably be in the same position as them if we supported IOS or adverts.
874
Issues Help Desk / Re: Could not compile the project
« on: February 18, 2014, 05:58:21 pm »Quote
Be sure to specify the folder "C:\ProgramData\ENIGMA"?Technically it can be anywhere, but without any spaces. That is why it's not "Program files" or something like that. ProgramData is a place in >WinXP just for this. In WinXP it tries to go to places with spaces and that breaks the compiler.
What it holds is all of the compiled files for ENIGMA. The first time you run ENIGMA it will compile not only your game, but also the ENIGMA game engine itself (+ all the selected systems like sound and graphics and selected extensions). They are put in .eobj folder in "C:\ProgramData\ENIGMA" (or anywhere you specify). The reason it puts it there and not in TEMP for example, is because technically it has to do it only once. So no reason for the files to be deleted and then compiled again (which can take time on older hardware). Then there is also Preprocessor_Environment_Editable folder inside it, which holds your games code translated into C++. It doesn't hold your resources (like sprites or sound files), but only meta information about them (like settings in sprites - for example - the origin position or the number of frames). This information is then compiled (and put in .eobj folder as well) and used together with the ENIGMA engine to create your final exe. It also holds some debug information (like compile logs).
So when you load a new project the content in Preprocessor_Environment_Editable will change, but most of the stuff in .eobj will stay the same. Your game (the code you write) is basically compiled into the SHELLmain.o file inside the .eobj folder.
875
Issues Help Desk / Re: How the heck am I supposed to get a HTML page?
« on: February 17, 2014, 04:40:26 pm »
Well I thought you just might try getting rid of encryption for site. No real reason for a site like that to have encryption. I personally made an update system once and all I did was GET a .txt file from a webserver. It's basically what you are trying, but you try to get .html via https.
I could technically make libcurl as an extension to ENIGMA. It would allow you to easily also get files from FTP and so on. The problem is that libcurl isn't that small and I am not sure about their licenses. So adding it to ENIGMA's git would probably be a mistake.
We should make a separate section to download ENIGMA extensions that are not directly inside ENIGMA.
I could technically make libcurl as an extension to ENIGMA. It would allow you to easily also get files from FTP and so on. The problem is that libcurl isn't that small and I am not sure about their licenses. So adding it to ENIGMA's git would probably be a mistake.
We should make a separate section to download ENIGMA extensions that are not directly inside ENIGMA.
876
Issues Help Desk / Re: How the heck am I supposed to get a HTML page?
« on: February 17, 2014, 08:12:50 am »Quote
I'd bet it's because of bad encryption ( ANSI instead of UTF or reverse for example ) so the request is bugged out.I think it because of encryption (https) in general (not coding like your ANSI/UTF thinking). The site https://api.kag2d.com/ is encrypted with TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, 256 bit keys. That means the request also needs to be encrypted and the response decrypted. The function does nothing like that. Here is the request sent by the function:
Quote
GET HTTP/1.1\r\n\There are many things you could try to send it, but encryption is not supported by that function (it would require handshaking, certificates and a lot of other things to work). So try disabling encryption. Later either we or yourself maybe can figure out how to make it work with encryption.
Host: https://api.kag2d.com/\r\n\
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0\r\n\
Connection: close\r\n\r\n
877
Issues Help Desk / Re: How the heck am I supposed to get a HTML page?
« on: February 16, 2014, 10:17:40 am »
The function is the one Robert linked too. The code is:
Code: [Select]
string net_http(string host, string loc) {
char *packet;
int s = net_connect_tcp(host,"http",0);
if (s < 0) die("Connect",0);
char *cmd = "\
GET %s HTTP/1.1\r\n\
Host: %s\r\n\
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0\r\n\
Connection: close\r\n\r\n";
int len = prepare(&packet,cmd,2,loc.c_str(),host.c_str());
int r = net_send_raw(s,packet,len);
free(packet);
if (r < 0) die("Send",1,s);
do {
if ((packet = (char*)net_receive(s).c_str()) == NULL)
die("Receive",1,s);
//HTTP 1.1 requires handling of 100 Continue.
while (strstr(packet,"HTTP/1.1 100 Continue\r\n") != NULL)
packet = strstr(packet,"\r\n\r\n") + 4;
//skip the header
packet = strstr(packet,"\r\n\r\n");
} while (packet == NULL); //packet not filled? Go back for more.
packet += 4;
closesocket(s);
return packet;
}
878
Off-Topic / Re: New Member Intro + Other
« on: February 15, 2014, 08:51:32 am »
I believe we will just ban Jimmy. Having constructive criticisms is one thing, but he has never had it. He just spams garbage and is trying to be offensive for no reason. No need for a person like that in the community.
879
Off-Topic / Re: YYG's "GM game of the month" isn't a GM game :P
« on: February 14, 2014, 06:34:16 am »
It is made in GM, even if the platforms are probably expanded with the help of YYG (the game isn't out yet anyway, and things like Wii and PSP Vita were stretch goals in their kickstarter were they got shit ton of money). So I am sure they are going to pay YYG to get the game ported. Both of their programmers have used GM in the past and many still tweat about it. This guy had some bug in December: https://twitter.com/Teknopants/status/412423087594827777 (but probably it was Samurai Gunn and not Hyper Light), but this guy https://twitter.com/TeddyDief/status/420967026749091840 specifically says how he just learned shaders in January and that will make Hyper Light look prettier.
Also, YYG showcase always have the company thing at the bottom of the page where one of the devs says why he chooses GM. So yes, they use GM for this game and this topic is just blown out of proportion for no reason.
Also, YYG showcase always have the company thing at the bottom of the page where one of the devs says why he chooses GM. So yes, they use GM for this game and this topic is just blown out of proportion for no reason.
880
General ENIGMA / Re: Can't post game.
« on: February 12, 2014, 05:18:56 am »
Yeah, he seems to have disappeared again. I think EDC was put on hold because I really wanted his parser a lot more, but he hasn't committed code in 2 weeks so I guess something got in the way. EDC is on github as well, maybe other should get on it? It's web programming - the easiest kind of programming there is. I think Josh should focus on parser.
881
Issues Help Desk / Re: Not compiling
« on: February 11, 2014, 01:12:43 pm »
Can you show the code for the max/min? It's known to fail sometimes in scripts because of the old parser. It fails when using local instance variables in it. What you need to do is create a temporary variable and use that. Like:
Code: [Select]
var tx,ty; tx = x; ty = y;
some_min = min(tx,ty);
You can also use fmin/fmax in its place (if using only 2 operands) and that should be even faster for now (as the 2 operand case is still done using varargs in the current implementation and that means it even involves loops just for a simple thing like min(a,b) and max(a,b)).
882
General ENIGMA / Re: Compile to Android Work around
« on: February 11, 2014, 01:09:47 pm »
Embedded devices (OUYA technically is one) require GLES - We still don't support GLES (although we are close with the whole GL3 changes). So no real workaround.
883
General ENIGMA / Re: LateralGM 1.8.4.1 Beta
« on: February 11, 2014, 09:07:56 am »
That is not really the same thing. Threaded loading and streaming are two different things. Streaming means that you can use resource before it's being completely loaded. We don't have that possibility in the current audio system.
884
General ENIGMA / Re: LateralGM 1.8.4.1 Beta
« on: February 11, 2014, 06:48:06 am »Quote
BTW, will the backspace / capital H bug be addressed in a bug revision ?That is an ENIGMA bug and not LGM's, so it will be fixed in the ENIGMA GIT most likely. Right now I am rewriting the whole GL3 thing so most people don't want to touch anything, but I guess the bug is in "SHELL\Platforms\Win32" and that they can touch.
Quote
I have a question, in the audio I noticed you can choose streaming, now I assume this means the audio is streamed from disk and not loaded in memory. Where is this audio streamed from is it a resource file containing all the streaming audios that is separate to the EXE or how does it work ?Currently that is just an option in LGM. ENIGMA doesn't use it. And I don't think there is large plans to upgrade the audio system in near future. Currently sound isn't a big problem either, so I doubt streaming is that required. But in terms of future plans, we plan to have two options planned - one is that you have a separate resource file (this is required for some platforms like Android) and the other is having everything appended to EXE like now. Future plan involves appending the EGM file to the end of the EXE to greatly speed up compilation time and even reduce size (as EGM's are ZIP's).
Third option of course is allowing the user to load resources himself and that is already present. This gives the most flexibility, speed and reduces ram usage, but is the hardest to do because the user has to do it.
885
Programming Help / Re: get_string without a dialog
« on: February 10, 2014, 04:41:29 pm »Quote
Thanks, but what I actually need is a direct text entry with cursor, no boxes whatsoever and no dialog boxes. I would like to handle my own text input area and just have the text input start at whatever area of the room that I point it to.Both of my examples and the Robert's example already did that. You should probably check them out before posting a reply.
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 »