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 »
211
Issues Help Desk / Re: Can't open egm project on Linux
« on: March 29, 2015, 12:35:53 pm »
ENIGMA on Linux has a special Ini extension, so you can use ini's on Linux. You just probably have to enable it on Linux (and disable on Windows).
But this problem is unrelated to the EGM project not opening correct (the original topic)?
But this problem is unrelated to the EGM project not opening correct (the original topic)?
212
Issues Help Desk / Re: Friend can't run Enigma
« on: March 29, 2015, 12:33:19 pm »
Yes, this is probably because of path with spaces. Try installing in C:\Enigma. This can also mean that the .dll is missing - either it is not compiled or is out of sync with jar. Is he using the install zip or something similar? If you use the installer, then the easiest thing is to zip the installation you have (this includes the mingw32 folder, git folder and so on) and just send it to him. Afterwards he should be able to extract anywhere without spaces and launch ENIGMA.exe.
213
General ENIGMA / Re: New To Enigma
« on: March 06, 2015, 09:16:00 pm »
Yes, it's active, but as active as used to be. Right now I'm about the only one who does any bigger improvements to it, but I don't do it in master branch. Right now I work here: https://github.com/enigma-dev/enigma-dev/commits/GL3.3NormalMatrix . I mostly work on bugfixes and gui extension now.
214
Off-Topic / Re: UE4 is now free
« on: March 03, 2015, 09:28:42 am »
I too payed about two moths for UE4. Now they give me last months refund and 30$ gift card on UE4 warehouse. I didn't use it much though, I just wanted to see how shader editor was working, so I could make something similar.
215
Programming Help / Re: Access to variables
« on: March 02, 2015, 05:27:55 pm »
That would involve binary operations. Operation like "bc=$3589" changing both "b" and "c" is not possible in EDL. You can do that in C++ using unions. You could make a function bc($3589) inside of which you would set b and c. Like this works for me in ENIGMA:
Code: (edl) [Select]
unsigned char b[2];
b[0] = ($3589 & $FF00) >> 8;
b[1] = ($3589 & $00FF);
draw_text(10,10,b[0]);
draw_text(10,30,b[1]);
Where b[0] will print 53 which is decimal for 0x35 and b[1] will print 137 which is decimal for 0x89.
216
Issues Help Desk / Re: Crashing Ubuntu 14.10
« on: March 01, 2015, 05:21:39 pm »
I don't know how an application can crash that hard. Most OS doesn't allow the application to crash drivers or anything like that, so it's very baffling. Is there some kind of log or event (not familiar with ubuntu, I just know that on Windows a crash like that would write a driver crash event). LGM writes a .log in the same folder as the lgm itself. Maybe it writes the error as well.
217
Programming Help / Re: mapping array to tiles
« on: February 28, 2015, 05:55:51 pm »
I already told you - use a surface so you would only have to do it once. If you only have to draw 144*160 (which I guess is gameboy resolution) then it's possible even that code will suffice. Try coding the emulator and then see if you get framerate issues. If this runs at 60fps (try set_synchronization(false) and room speed 9999 to see how much you can really get) then there is no reason to do optimizations now.
218
Programming Help / Re: mapping array to tiles
« on: February 28, 2015, 04:24:23 pm »
You can generate them at runtime too. Like use surfaces. Draw the tile on it and create a sprite from it. It would work because the tiles are not animated. Another way would be to make sprites consisting of those indexes (so it's a sprite with pixel values 1,0,3,2 etc.) and then color them with palette using a shader in runtime.
219
Issues Help Desk / Re: Issues running ENIGMA in school
« on: February 28, 2015, 06:54:44 am »
Yeah, they clearly don't want users to install or run anything. If those PC's are meant for computer programming, then they should allow users to install new tools. The only thing you actually need is to add two paths to PATH: "set PATH=C:\ENIGMA_InstallZip\mingw32\bin;C:\ENIGMA_InstallZip\git\bin;%PATH%" (your paths might differ). If you show to them that both of these paths contain only GIT version control software and GCC compiler, then I don't think they will object too much.
220
Issues Help Desk / Re: Issues running ENIGMA in school
« on: February 27, 2015, 02:18:28 pm »
Then I sadly don't see a way of you running ENIGMA on that computer - or any program for that matter.
221
Issues Help Desk / Re: Issues running ENIGMA in school
« on: February 27, 2015, 01:25:29 pm »
If you run via .jar then the PATH is not set. ENIGMA.exe itself is not a batch file, but I guess you mean the fact that it launches a program makes it unusable? It doesn't use batch file either.
First you must try launching via cmd. Open cmd, cd to the folder you have enigma (my case "C:\ENIGMA_InstallZip\enigma-dev"). Then type: "java -jar lateralgm.jar". If I just use the .jar (double click) then it fails to even find the .dll.
If it still cannot find the compiler, you must modify the PATH. Try doing it trough "My Computer / Properties / Advanced / Environment Variables". But if you don't have Admin rights, then you can modify it temporarilly in cmd via "set PATH=C:\ENIGMA_InstallZip\mingw32\bin;C:\ENIGMA_InstallZip\git\bin;%PATH%". Then launch the .jar via console like I showed above. The "set PATH" shouldn't require admin rights, as it will only work for that console and any programs you open trough that console. If you close it or log out, the path should return to normal.
You can also try powerShell and launch trough that (it fixes some compile errors for me sometimes).
First you must try launching via cmd. Open cmd, cd to the folder you have enigma (my case "C:\ENIGMA_InstallZip\enigma-dev"). Then type: "java -jar lateralgm.jar". If I just use the .jar (double click) then it fails to even find the .dll.
If it still cannot find the compiler, you must modify the PATH. Try doing it trough "My Computer / Properties / Advanced / Environment Variables". But if you don't have Admin rights, then you can modify it temporarilly in cmd via "set PATH=C:\ENIGMA_InstallZip\mingw32\bin;C:\ENIGMA_InstallZip\git\bin;%PATH%". Then launch the .jar via console like I showed above. The "set PATH" shouldn't require admin rights, as it will only work for that console and any programs you open trough that console. If you close it or log out, the path should return to normal.
You can also try powerShell and launch trough that (it fixes some compile errors for me sometimes).
222
Programming Help / Re: mapping array to tiles
« on: February 27, 2015, 01:14:45 pm »
But how does the data look? Because if they are "tiles", then can't you just load them as tiles? Save them as images and load them in ENIGMA. Then draw via regular drawing functions.
The speed of course purely depends on hardware. On my 660ti I can draw 30k sprites with 250FPS. And it of course can handle 25k triangles. If you use a model it can handle hundreds of thousands. Speed depends more on what you want to do and how you do it. There are usually many ways to optimize something.
The speed of course purely depends on hardware. On my 660ti I can draw 30k sprites with 250FPS. And it of course can handle 25k triangles. If you use a model it can handle hundreds of thousands. Speed depends more on what you want to do and how you do it. There are usually many ways to optimize something.
223
Issues Help Desk / Re: Issues running ENIGMA in school
« on: February 27, 2015, 07:35:28 am »
How did you install ENIGMA? How did you run it?
Because it clearly cannot find mingw32-make. It's packaged in MinGW that comes with ENIGMA Portable Zip. When you run trough ENIGMA.exe the compilers binaries (mingw/bin) is added to PATH, so ENIGMA/LGM can find it. You can try adding it to PATH manually. If you didn't install ENIGMA trough Portable Zip then you need to install mingw (or compiler in general).
Because it clearly cannot find mingw32-make. It's packaged in MinGW that comes with ENIGMA Portable Zip. When you run trough ENIGMA.exe the compilers binaries (mingw/bin) is added to PATH, so ENIGMA/LGM can find it. You can try adding it to PATH manually. If you didn't install ENIGMA trough Portable Zip then you need to install mingw (or compiler in general).
224
Programming Help / Re: mapping array to tiles
« on: February 27, 2015, 03:45:23 am »
If you know how the data looks, then why cannot you do it via tile_add or even draw_sprite_part? I didn't quite understand what is indie that 1byte. And why 1 byte has length of 64.
225
Programming Help / Re: How are instances working?
« on: February 24, 2015, 06:42:20 am »
What I do with pointer is abstract them. That is done in several places in ENIGMA and many extensions. For example, in the AngelScript extension I'm doing this:
Code: (edl) [Select]
unordered_map<unsigned int, asIScriptFunction*> as_functions;
unsigned int as_functions_maxid = 0;
int as_function_init(int engine, string module, string function){
limit_checkv(engine, as::as_engines_maxid, "engine"); //This checks if engine exists
asIScriptModule *mod = as::as_engines[engine]->GetModule(module.c_str());
asIScriptFunction *func = mod->GetFunctionByDecl(function.c_str());
as::as_functions.insert(pair<unsigned int, asIScriptFunction* >(as::as_functions_maxid, func));
return as::as_functions_maxid++;
}
void as_function_destroy(int function){
limit_check(function, as::as_functions_maxid, "function"); //This checks if the function exists
as::as_functions.erase(as::as_functions.find(function));
}
It's not pretty or very C++'y (more like C), but that is what is required if we want everything to be integers. It does allow more error checking and gives less possibilities for crashes.
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 »