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.
1
Function Peer Review / Re: move_towards_point
« on: January 11, 2011, 08:43:15 am »
Probably because hes giving a non radian angle to sin and cos.
2
General ENIGMA / Re: String Physics
« on: January 09, 2011, 08:50:56 pm »
The game can probably be optimised more if you use c++ types and pointers.
3
Proposals / Re: Object member functons
« on: January 08, 2011, 08:57:17 am »Suppose f1 and f2 return 0, and obj2.array[0,0] = 0.As RetroX has just said, because what if there are multiple instances of obj1 and obj2? You can't run things so straight then. f1 and f2 might return different values depending on the instance it was executed with.
The statement would be equivalent to the following:
obj1.a = 0;
As you can see, I'm totally lost, which is why someone needs to explain this one to me.
RetroX has stated as a solution:Quotein the end, the last one executed would actually be storedBut to me this is really not nice and I don't think it is a viable solution. Which is why I mentioned previously:Code: (EDL) [Select]obj.a = obj.f1();
People would naturally expect this to work like:Code: (EDL) [Select]with (obj)
But it would instead work like:
{
a = f1();
}Code: (EDL) [Select]global var ______ENIGMATEMP;
with (obj)
{
______ENIGMATEMP = f1();
}
with (obj)
{
a = ______ENIGMATEMP;
}
There are no ______ENIGMATEMP. The parser will just convert "obj." to enigma_varaccess and everything will be as fast as a c++ member function call and assignation.
4
General ENIGMA / Re: Some common GML issues, and dealing with them in Enigma?
« on: December 24, 2010, 06:57:53 am »5
General ENIGMA / Re: Some common GML issues, and dealing with them in Enigma?
« on: December 24, 2010, 06:49:42 am »
I approve.
6
Issues Help Desk / Re: extern double returns 0
« on: November 27, 2010, 12:01:29 pm »
Very nice curves. Nice work.
7
Function Peer Review / Re: Networking on GitHub
« on: September 27, 2010, 11:22:50 am »
I'm working on it.
http://github.com/r9k/EnigmaNet/
Those are the currently working functions, I tried to do them like GM functions, so it's easier for gm users to use them. Expert users will still be able to use the low level functions.
http://github.com/r9k/EnigmaNet/
Those are the currently working functions, I tried to do them like GM functions, so it's easier for gm users to use them. Expert users will still be able to use the low level functions.
Code: [Select]
double net_tcp_connect(string ip, unsigned short port, bool blocking);
double net_tcp_connect_timeout(string ip, unsigned short port, bool blocking, float seconds);
bool net_tcp_set_blocking(double tcpsocketId, bool blocking);
double net_tcp_listen(unsigned short port, bool blocking);
double net_tcp_accept(double listener_id, bool blocking);
bool net_tcp_connected(double tcpsocketId);
bool net_tcp_disconnect(double tcpsocketId);
bool net_tcp_send(double tcpsocketId, double packetId);
bool net_tcp_receive(double tcpsocketId, double packetId);
bool net_tcp_destroy(double tcpsocketId);
bool net_udp_bind(unsigned short port, bool blocking);
bool net_udp_bind_available(bool blocking);
bool net_udp_unbind(double udpsocketId);
unsigned short net_udp_localport(double udpsocketId);
bool net_udp_set_blocking(double udpsocketId, bool blocking);
bool net_udp_send(double udpsocketId, double packetId, string ipAddress, unsigned short remotePort);
bool net_udp_receive(double udpsocketId, double packetId, string &ipAddress, unsigned short &remotePort);
bool net_udp_destroy(double udpsocketId);
double net_http_create();
bool net_http_host(double httpId, string host);
double net_http_send(double httpId, double httpRequestId);
bool net_http_destroy(double httpId);
double net_http_request_create();
bool net_http_request_method(double httpRequestId, string method);
bool net_http_request_uri(double httpRequestId, string uri);
bool net_http_request_field(double httpRequestId, string name, string value);
bool net_http_request_body(double httpRequestId, string body);
bool net_http_request_destroy(double httpRequestId);
double net_http_response_status(double httpResponseId);
string net_http_response_body(double httpResponseId);
bool net_http_response_destroy(double httpResponseId);
string net_last_error();
double net_packet_create();
bool net_packet_destroy(double packetId);
template <class T> bool net_packet_write(double packetId, T value);
template <class T> bool net_packet_read(double packetId, T &var);
bool net_packet_clear(double packetId);
double net_packet_size(double packetId);
double net_utility_rc4_create(string keyString);
bool net_utility_rc4_step(double rc4Id);
bool net_utility_rc4_step_add(double rc4Id, double step);
bool net_utility_rc4_step_set(double rc4Id, double step);
char net_utility_rc4_byte(double rc4Id);
bool net_utility_rc4_xor(double rc4Id, double packetId);
bool net_utility_rc4_destroy(double rc4Id);
8
Function Peer Review / Re: Networking on GitHub
« on: September 21, 2010, 04:55:14 pm »
It seems I'm having problems compiling on windows, I'll look into that.
9
Function Peer Review / Re: Networking on GitHub
« on: September 21, 2010, 01:28:17 pm »
We should build an adapter on top of EnigmaNet, while still giving access to the low level functions.
The first thing I'd like to add is a Buffer class that can grows like a vector and be written and read from like a stream.
The first thing I'd like to add is a Buffer class that can grows like a vector and be written and read from like a stream.
10
Proposals / Re: LGM themes (Warning: Images)
« on: September 21, 2010, 12:24:00 pm »Not everyone uses windows, and not everyone likes the way windows looks. Personally I prefer Gnome's Ambience, and get a little annoyed whenever something breaks that theme. When the time comes, I think restoring the Platform L&F would be a better option than having it default to Windows or Java. A better option yet would be to let the user pick their L&F.
A theme selection dropbox or something like that would definitely be a good addition to LGM, in my opinion.
11
Proposals / Re: LGM themes (Warning: Images)
« on: September 18, 2010, 03:02:24 pm »
didn't notice any performance difference
12
Proposals / Re: LGM themes
« on: September 18, 2010, 10:03:57 am »
For fun and giggles, I just made a dark orange theme that looks like my irc theme.
13
Proposals / LGM themes (Warning: Images)
« on: September 18, 2010, 09:04:14 am »
I fucked around with TinyLaf http://www.muntjak.de/hans/java/tinylaf/tinyscreen.html
It allows you to build theme for Java Swing, you can switch theme during runtime, and allow users to build their own themes. (Lib checks for a Default.theme file in current directory)
Check out those screenshots :
Current Lgm :
It allows you to build theme for Java Swing, you can switch theme during runtime, and allow users to build their own themes. (Lib checks for a Default.theme file in current directory)
Check out those screenshots :
Current Lgm :
14
Announcements / Re: ENIGMA R4
« on: September 08, 2010, 09:17:40 am »Is nobody but me getting the Windows error upon compiling 'wrap_oal.dll is either not designed to run on Windows or it contains an error'?
No. What is your OS ?
15
Announcements / Re: ENIGMA R4
« on: September 08, 2010, 08:58:10 am »I also needed to rename make. I also installed OpenAl, but I didn't check if I even needed to. Thou when I launch LGM it asks me if I want to download r435, and when I press Yes, I think it downloads all of those files, but the next time I run LGM it asks me if I want to update to r435 again. Also, in help>about it says r456, so it asks me to download an older version?
Besides this, I can complile and run games. I tried r9k example and it runs.
Current version of enigma is r435.
Current version of LGM is r456.
Your game is running, Whats your OS ?