Jump to content


Photo

gmLIBRARY


  • Please log in to reply
21 replies to this topic

#1 ChaosMaker

ChaosMaker

    GMC Member

  • GMC Member
  • 288 posts
  • Version:GM:HTML5

Posted 26 April 2011 - 07:40 AM


Posted Image

hello ^^!
I spent some time developing this extension, it is a set of utility functions.
I used several dlls of the forum, and simplified the functions.
and also i have created several functions in gml.
this extension has some 200 functions.
people might think that an extension with so many functions can cause lag in the game...
and I can say that those people are wrong!
inspired by languages ​​like C + + / c # / java I created a method of use of functions.
I put the functions in "headers"
so the program will load only the functions that the programmer chooses.
the programmer can choose the header using the function "using"

eg:
using("header.h");

all the functions of gmLIBRARY were divided into headers
eg
graphic functions were stored in the header gui.h
functions of the system were stored in the header system.h
functions of the windows were stored header windows.h
functions of pathfinder were stored in the header path.h
functions of connecção were stored in the header 39dll.h
functions of cryptografação/md5 were stored in the header crypt.h

the programmer can include these headers in the game in the following ways

using("windows.h");or
using("gui.h|system.h|path.h|and others...");


some features of gmLIBRARY
Internet Access / creating windows of navigation within the game maker / read characters from the internet
encryption is descriptografação/md5
string expansion as stplit() and split_ext() find_string() string_copy_at()
quick access to ds_list get_ds and sizeof()
support the chatbox widget and many other functions
system functions as
get_hd(), fopen(), fwrite(), fread(), fclose(), eof(); pause();
sys_computer_name();// get name of computer
sys_country();// get country
sys_language();// get language
sys_os();// get operational system
sys_username();// get username
sys_drive_size();// get driver size eg: "C: \";
sys_clear_memory();
and others ...

media functions to play video and music
media_load();
media_play();
and others ...

functions to download files from the Internet
web_create_download();
web_start_download();
web_get_complete();
and others ...

Compression functions
zip_create();
zip_add_file();
zip_close();
and others ...

drag support, allows the programmer to drag files into the window of the game maker
drag_enable();
drag_numb();
drag_get_file();

struct suport
struct();
dsctruc();

joystick suport
js_check();
js_pressed();
js_released();
and others...

pathfinder suport
path_init();
path_block();
path_find();
and others...

drawing functions
draw_star();
draw_poly();

tray icon suport
tray_init();
tray_text();
tray_icon();
and others...

and much more...

Download[.zip][731 kbts]
Download gmlibrary.zip from Host-A

Thanks to the developers of dlls used ^^

Edited by ChaosMaker, 29 April 2011 - 06:19 AM.

  • 0

#2 supinyo

supinyo

    GMC Member

  • New Member
  • 3 posts

Posted 26 April 2011 - 11:09 AM

I get this error

Could you tell me how i do.

(sorry my English bad )

___________________________________________
COMPILATION ERROR in extension package gmLIBRARY
Error in code at line 16:
_current=getDs(_header,u);
^
at position 11: Unknown function or script: getDs
  • 0

#3 ChaosMaker

ChaosMaker

    GMC Member

  • GMC Member
  • 288 posts
  • Version:GM:HTML5

Posted 26 April 2011 - 11:42 AM

fixed!
Thank you for notify!

Edited by ChaosMaker, 26 April 2011 - 11:43 AM.

  • 0

#4 supinyo

supinyo

    GMC Member

  • New Member
  • 3 posts

Posted 26 April 2011 - 01:41 PM

How i can download and savefile . When i use web_get_complete('httpfilename'); It can save file to my computer but next in 5 - 10 seconds file is deleted automatic

Please tell me . ^^ Thank you.
  • 0

#5 ChaosMaker

ChaosMaker

    GMC Member

  • GMC Member
  • 288 posts
  • Version:GM:HTML5

Posted 26 April 2011 - 01:47 PM

How i can download and savefile . When i use web_get_complete('httpfilename'); It can save file to my computer but next in 5 - 10 seconds file is deleted automatic

Please tell me . ^^ Thank you.

the function web_get_complete() returns true if the download is finished
example:
download=web_create_download("http://dl.dropbox.com/u/23742825/Image/gmLIBRARYLOGO.png","img.png");
web_start_download(download);

if (web_get_complete(download))
show_message("Download Complete!");
anyway, I'll check if working properly.

Edited by ChaosMaker, 26 April 2011 - 01:51 PM.

  • 0

#6 supinyo

supinyo

    GMC Member

  • New Member
  • 3 posts

Posted 26 April 2011 - 02:04 PM


How i can download and savefile . When i use web_get_complete('httpfilename'); It can save file to my computer but next in 5 - 10 seconds file is deleted automatic

Please tell me . ^^ Thank you.

the function web_get_complete() returns true if the download is finished
example:
download=web_create_download("http://dl.dropbox.com/u/23742825/Image/gmLIBRARYLOGO.png","img.png");
web_start_download(download);

if (web_get_complete(download))
show_message("Download Complete!");
anyway, I'll check if working properly.



Oh, Thank you very much . It working excellent
  • 0

#7 scorpeti

scorpeti

    GMC Member

  • New Member
  • 15 posts

Posted 28 April 2011 - 06:46 AM

Hi!

I really like it, but my operation system is Win7 and it shows WinVista...
  • 0

#8 ChaosMaker

ChaosMaker

    GMC Member

  • GMC Member
  • 288 posts
  • Version:GM:HTML5

Posted 28 April 2011 - 09:07 AM

FIXED!
^^
  • 0

#9 scorpeti

scorpeti

    GMC Member

  • New Member
  • 15 posts

Posted 28 April 2011 - 10:50 AM

Nice :)
  • 0

#10 peter henry

peter henry

    GMC Member

  • GMC Member
  • 70 posts

Posted 28 April 2011 - 03:09 PM

ChaosMaker

You are a excellent programmer.
Você é um excelente programador...

Very good.
Ficou muito bom mesmo.

Many functions.
Tem muitas funções...

Valeu!
  • 0

#11 ChaosMaker

ChaosMaker

    GMC Member

  • GMC Member
  • 288 posts
  • Version:GM:HTML5

Posted 29 April 2011 - 06:27 AM

thank you!
i add some more examples and add more functions and rewrited other functions like gui_button() and gui_list();
the example that i add are text/chatbox example guiButtons and List test and guiTreefolders
Posted Image
gui_list();
Posted Image
gui_tree();

and bugs fixed!

Edited by ChaosMaker, 29 April 2011 - 06:28 AM.

  • 0

#12 jobro

jobro

    GMC Member

  • New Member
  • 1247 posts
  • Version:GM8

Posted 14 May 2011 - 06:47 AM

This is pure awesomeness. It works flawlessly. Good work!
  • 0

#13 ChaosMaker

ChaosMaker

    GMC Member

  • GMC Member
  • 288 posts
  • Version:GM:HTML5

Posted 16 May 2011 - 01:32 AM

thanks! ^^
I am also adding 3D functions.
Support for collision and loading the different types of 3D models.
  • 0

#14 Teo-TN

Teo-TN

    GMC Member

  • New Member
  • 2 posts

Posted 12 June 2011 - 02:29 PM

Is it possible to fetch title tag of currently browsed website (and its icon?)?
And where may I get the complete list of functions included in gmLibrary?

Edited by Teo-TN, 12 June 2011 - 02:30 PM.

  • 0

#15 rm15755

rm15755

    GMC Member

  • New Member
  • 90 posts
  • Version:GM8

Posted 27 October 2011 - 01:10 AM

Someone help me... I want to use the web create function. BUT I GET AN "unexpected error" message. and can you PLEASE include a help file?

edit="OK, Saw the example. NOW I GET IT"

Edited by rm15755, 27 October 2011 - 01:35 AM.

  • 0

#16 rm15755

rm15755

    GMC Member

  • New Member
  • 90 posts
  • Version:GM8

Posted 07 January 2012 - 09:50 PM

Hi guys, i have a slight issue...



using("gui.h");
gameintro=create_chat();
chat_set_color(gameintro,c_white,c_blue,c_blue)
chat_set_pos(gameintro,view_xview+15,view_xview+200,view_wview-30,85)
chat_set_hotkey(gameintro,ord('Z'))
chat_set_sound(gameintro,sound7_TP_Talk_Next)
sound_play(sound5_TP_Talk_Start)
chat_add_text(gameintro,"WELCOME##PRESS Z to continue...|This is a TEST...##<z>|TESTTESTESTEST blahblahblahblah##<z>")
chat_set_speed(gameintro,0.8)

if(chat_end(gameintro))
{
sound_play(sound6_TP_Talk_End)
chat_hide(gameintro,1)
}


Everything works except for one thing... The sound_play(sound6_TP_Talk_End) thing works Every where else but here. but everything else in that block works. WHY?
  • 0

#17 goresoft

goresoft

    GMC Member

  • GMC Member
  • 40 posts
  • Version:GM:Studio

Posted 30 March 2012 - 02:55 PM

cool gex!! can i have an example about joystick functions?

Another request: can you give us a little manual about all functions Like gml one?

Thanks! You are Great!!
  • 0

#18 ChaosMaker

ChaosMaker

    GMC Member

  • GMC Member
  • 288 posts
  • Version:GM:HTML5

Posted 04 April 2012 - 01:07 AM

I'll write a new version of gmLibrary much improved.
with more features and greater ease of use.
and I will write a help file.





  • 0

#19 goresoft

goresoft

    GMC Member

  • GMC Member
  • 40 posts
  • Version:GM:Studio

Posted 18 April 2012 - 11:37 PM

thanks man, long life to you! :biggrin:
  • 0

#20 ChaosMaker

ChaosMaker

    GMC Member

  • GMC Member
  • 288 posts
  • Version:GM:HTML5

Posted 20 April 2012 - 02:55 AM

Thank you! ^^

here a preview of new version from gmLib
http://www.youtube.c...h?v=enS7vxsLhxA





I am very excited about this release.
the power of this 3D version is much better than any other.

with a new framework 3d much easier and powerful.
allows you to load multiple formats external models.
a system of intercession impeccable and super easy to use.

allows you to load the animated models autodesk 3d max. ^^

this is just the tip of the iceberg, it will still have a LOT more features.

Edited by ChaosMaker, 20 April 2012 - 02:56 AM.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users