Hey!
Could anybody kindly give me the formula for point_direction(x1,y1,x2,y2);?
I've been searching the internet for ages now, but I must obviously not be searching right, since I can't find anything.
Thank you,
-Insane
- Game Maker Community
- → Viewing Profile: Topics: -Insane-
-Insane-
Member Since 29 Apr 2006Offline Last Active Jul 02 2009 01:24 PM
Community Stats
- Group New Member
- Active Posts 717
- Profile Views 1678
- Member Title GMC Member
- Age 19 years old
- Birthday December 10, 1993
-
Gender
Not Telling
-
Location
Germany -- Requests: 3/5
-
Interests
Game maker, Computers, Technology, Robots.<br /><br /><br />--------------------------------------------------------------<br />----------- NOPE, I DON'T USE GM ANYMORE! ----------<br />----------- XNA IS MUUUCH BETTER! --------------------<br />--------------------------------------------------------------<br /><br /><br />For anybody seeking guidance (examples, codes, help, etc.), be aware of the following:<br /><br />I am current receiving 2-4 requests a day.<br />I hope you understand it, if It may take be up to a week to help you.<br />If you don't have time, ask somebody else from the list, please.<br /><br />Thank you for your interest,<br />-Insane
0
none
Topics I've Started
Calculating Direction
11 November 2007 - 09:21 AM
String Encryption Script
14 September 2007 - 06:23 PM
Hello!
I have searched the extending GM board for hours now, but I can't seem to find a simple yet powerful string+seed encryption dll. I can encrypt files, but writing the string, encrypting it, and reading it again is just too insecure and slow it would render the whole point of my system absolutely useless, if the message is stored in plaintext, even if only for a fraction of a second.
So I'm asking you: Is there a simple, speedy and extremely powerful encryption dll/script out there that takes strings instead of files?
I tried editing IsmCrypt's source, but it's just too much for me (My C++ knowledge is limited).
I tried creating a gml script, but I failed miserably. If anybody wants to look at my encryption script, please do so and tell me where I went wrong.
-Insane
Note: I have GM7 registered.
I have searched the extending GM board for hours now, but I can't seem to find a simple yet powerful string+seed encryption dll. I can encrypt files, but writing the string, encrypting it, and reading it again is just too insecure and slow it would render the whole point of my system absolutely useless, if the message is stored in plaintext, even if only for a fraction of a second.
So I'm asking you: Is there a simple, speedy and extremely powerful encryption dll/script out there that takes strings instead of files?
I tried editing IsmCrypt's source, but it's just too much for me (My C++ knowledge is limited).
I tried creating a gml script, but I failed miserably. If anybody wants to look at my encryption script, please do so and tell me where I went wrong.
//XOR-encrypts/decrypts a string using another string.//Argument0: String to encrypt/decrypt//Argument1: Key to encrypt/decrypt with{var str,key,new;str = string(argument0);key = string(argument1);new = "";if (str = "") || (key = "") {return ""; exit;}for (i=0; i<string_length(str); i+=1) new = new+chr(ord(string_char_at(str,i+1)) ^ ord(string_char_at(key,(i mod string_length(key))+1)));return new;}-Insane
Note: I have GM7 registered.
Url Encoding
13 September 2007 - 04:25 PM
Hey!
I searched the forum for a bit, but it doesn't seem as though anybody has done this before. So I decided to release my custom-made URL encoding and decoding scripts.
For those of you who don't know what URL encoding is and why it's used, here's the general idea:
Some special characters can mix up or confuse HTTP requests with servers, since they are used for special meanings, such as define the end of a string or end separate parameters or something. The way this is gone by is by substituting, for instance "@" with "%40". Of course the "%" character itself would also URL-encoded, so nothing is mixed up. Basically the "40" is the hexadecimal version of "@", and the urldecoder does the same thing in reverse.
So here are the scripts. Both take one string as argument and return one too.
URLencode:
URLdecode:
-Insane
Ps: I'm doing Base64 encoding right now, if you care to know, and I will probably post it too.
I searched the forum for a bit, but it doesn't seem as though anybody has done this before. So I decided to release my custom-made URL encoding and decoding scripts.
For those of you who don't know what URL encoding is and why it's used, here's the general idea:
Some special characters can mix up or confuse HTTP requests with servers, since they are used for special meanings, such as define the end of a string or end separate parameters or something. The way this is gone by is by substituting, for instance "@" with "%40". Of course the "%" character itself would also URL-encoded, so nothing is mixed up. Basically the "40" is the hexadecimal version of "@", and the urldecoder does the same thing in reverse.
So here are the scripts. Both take one string as argument and return one too.
URLencode:
//URL-Encodes a string according to RFC 1738{var orig,new,char,tmp,ans;orig = argument0;new = "";char = 0;tmp = 0;ans = 0;for (ps=1; ps<=string_length(orig); ps+=1) { char = string_char_at(orig,ps); char = ord(char); if (char < 32) || (char > 126) || (char == 36) || (char == 38) || (char == 43) || (char == 44) || (char == 47) || (char == 58) || (char == 59) || (char == 61) || (char == 63) || (char == 64) || (char == 32) || (char == 34) || (char == 60) || (char == 62) || (char == 35) || (char == 37) || (char == 123) || (char == 125) || (char == 124) || (char == 92) || (char == 94) || (char == 126) || (char == 91) || (char == 93) || (char == 96) { tmp = floor(char/16); ans = char-tmp*16; tmp = string(tmp); if (tmp = "10") tmp = "A"; if (tmp = "11") tmp = "B"; if (tmp = "12") tmp = "C"; if (tmp = "13") tmp = "D"; if (tmp = "14") tmp = "E"; if (tmp = "15") tmp = "F"; ans = string(ans); if (ans = "10") ans = "A"; if (ans = "11") ans = "B"; if (ans = "12") ans = "C"; if (ans = "13") ans = "D"; if (ans = "14") ans = "E"; if (ans = "15") ans = "F"; new = new+"%"+tmp+ans; } else { new = new+chr(char); }}return new;}URLdecode:
//URL-Decodes a string according to RFC 1738{var orig,new,char,tmp;orig = argument0;new = "";char = 0;tmp = 0;for (ps=1; ps<=string_length(orig); ps+=1) { char = string_char_at(orig,ps); if (char == "%") { ps += 1; char = string_upper(string_char_at(orig,ps)); if (char = "A") char = "10"; if (char = "B") char = "11"; if (char = "C") char = "12"; if (char = "D") char = "13"; if (char = "E") char = "14"; if (char = "F") char = "15"; char = real(char); ps += 1; tmp = string_upper(string_char_at(orig,ps)); if (tmp = "A") tmp = "10"; if (tmp = "B") tmp = "11"; if (tmp = "C") tmp = "12"; if (tmp = "D") tmp = "13"; if (tmp = "E") tmp = "14"; if (tmp = "F") tmp = "15"; tmp = real(tmp); new = new+chr(char*16+tmp); } else { new = new+char; }}return new;}-Insane
Ps: I'm doing Base64 encoding right now, if you care to know, and I will probably post it too.
Insane Bot (msn Bot)
06 September 2007 - 06:51 PM
InsaneBot is now a fully functional and customizable (opensource...) MSN Interactive Bot. It's aim is ease of creating bots talking in human speech, and command-based bots. With 3.0, I aim to create a powerful and flexible scripting system to create bots at hearts desire.
- Title: InsaneBot
- Catagory: Program
- Size: 1,817KB (1.7MB)
- Filetypes: Executable, source gmk available.
- Resolution: No change, Windowed
- Current Version: 1.4
- Written in:
Professional/Registered - External programs used:
- 39dll by 39ster.
- run.dll, author unknown (can anybody tell me?)
- cURL stand-alone, cURL team.
The program resembles a command prompt environment, with a console generated by my widgets engine (unfinished), and features two unique bot control techniques.
One is a simple command-based interface, using simple command such as "!about", or "!say <text>". The "!", otherwise referred to as the command character, is fully customizable in the create event of the obj_console object, heck, you can even change it while the bot's online using "!cmdchar <new>". It supports any size, you could even set it to "bot, " for some fun.
The other interface is a humanistic speech interface. You talk to the bot normally, and he parses your sentence word by word, and replies accordingly. While it may be fun at first, you'll notice his vocabulary is severely limited. If you want to add more, feel free to. Post your additions on this topic, though
This feature is only enabled if he is in "verbose" mode. By default, this is set to "off".
You can easily change it, (as admin), by using !verbose on/off.
The bot has three different types of commands.
First there are the public domain commands, available to everybody.
Second there are the admin-only commands.
Finally are owner-only commands. The owner can be set in the create event of the obj_console object, too.
For a full list of commands, see the bot_admin_commands script.
Included in TVP1.rtf is a copy of the the TVP file format (for the vocabulary files), in case you want to make your own vocabulary until the official shared+auto-updated one is released.
EDIT: The following applies to version 1.7 and below only.
Finally, to get the bot running, you have to edit the gmk to include email and password. The bot, however, requires you to url-encode certain fields. More info about this can be found here.

I know it sucks graphically, but hey, it's console based
Danopia (zip, direct)
Version: 2.1 executable (vocabulary still missing until further notice.)
URL: http://bqo.danopia.n...saneBot_2_1.zip
Danopia (zip, direct)
Version: 2.1 source gmk
URL: http://bqo.danopia.n...Bot_2_1_src.zip
Danopia (zip, direct)
Version 1.4 source gmk
URL: http://bqo.danopia.n...Bot_1_4_src.zip
Much effort was put into this bot. If anybody would like to know more about the MSNP8 protocl, they could find a complete copy here.
Please comment!
- Several bugfixes and !changenick/!nick added.
- 2.0: External data files used, message parser rewritten, url-encoding added.
- 1.6: Several MSN 8 features added (such as nudge) (unreleased)
- 1.5: TVP1 system added. (unreleased)
- 1.4: Speech parsing + tiny vocabulary added.
- 1.3: Admin system improved. (unreleased)
- 1.2: Admin commands added. (unreleased)
- 1.1: MSNP8 events added. (unreleased)
- 1.0: Login system added (using cURL and 39dll). (unreleased)
- MSNC1 support - 2.2
- IBSL scripting language -> 3.0
Pseudo-3d Mmorpg
08 August 2007 - 01:28 AM
Hello,
I'm here representing the RRG group of game developers, and we're working on a Pseudo-3D MMORPG project. We have all the programmers we need, we just need level designers, graphic artists, sound artists and music composers.
We're currently still in the alpha phase, but a playable client+server will be available once we get a server to host our site.
So if anybody is willing to offer some webspace, that'd be great for us, too.
If you're interested in joining, you can read more at our official forum:
http://z6.invisionfr...m/RRG/index.php
-Insane
EDIT: We also require some php programmers, mainly so I can continue working on the toolkit and finally get that damn release out there.
We need php programmers capable of creating a flexible interface in combination with MySQL and file uploading to manage WIPs and finished "items", which can be things like new monsters, levels, items etc.
More info can be gotten by MSN'ing me, or visiting the above forum.
My MSN: ninjai1223@yahoo.de
I'm here representing the RRG group of game developers, and we're working on a Pseudo-3D MMORPG project. We have all the programmers we need, we just need level designers, graphic artists, sound artists and music composers.
We're currently still in the alpha phase, but a playable client+server will be available once we get a server to host our site.
So if anybody is willing to offer some webspace, that'd be great for us, too.
If you're interested in joining, you can read more at our official forum:
http://z6.invisionfr...m/RRG/index.php
-Insane
EDIT: We also require some php programmers, mainly so I can continue working on the toolkit and finally get that damn release out there.
We need php programmers capable of creating a flexible interface in combination with MySQL and file uploading to manage WIPs and finished "items", which can be things like new monsters, levels, items etc.
More info can be gotten by MSN'ing me, or visiting the above forum.
My MSN: ninjai1223@yahoo.de
- Game Maker Community
- → Viewing Profile: Topics: -Insane-
- Privacy Policy
- GMC Rules and Forum Rules ·



Find content