Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, 1 invisible), 1,395 guests, and 12 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Dll of GameEdit - Function Preview #96245
10/27/06 19:11
10/27/06 19:11
Joined: Oct 2002
Posts: 4,753
Munich, Bavaria, South of Germ...
TripleX Offline OP
Expert
TripleX  Offline OP
Expert

Joined: Oct 2002
Posts: 4,753
Munich, Bavaria, South of Germ...
Hello,

as small apology for the big delay of GameEdit I've collected all sort of dll-functions into one gigantic DLL.

The functions are widly spreaded.. If you want to play media files with the standard edition, check the width of a string, use a much better file system than the gamestudio's one or check the width/height/format/mip-level amout of a bitmap without opening it.. just do it with this 3DGS-extension. Almost everything is possible

This is the last chance to post feature wishes. ATM I have 245 functions Here is a preview without documentation. I think the most function names are self-explanatory.
All functions listed here are working and are tested (with the development of GameEdit).

Contributions by other DLL-Autors are welcome

Code:

//extended file functions
dllfunction FOpen(str,mode_);
dllfunction FClose(id);
dllfunction FCloseAll();
dllfunction FEnd(id); //ende der Datei?
dllfunction FSeekFromCursor(id,num);
dllfunction FSeekFromStart(id,num);
dllfunction FSeekFromEnd(id,num);
dllfunction FWriteLong(id,long);
dllfunction FReadLong(id);
dllfunction FWriteFloat(id,long);
dllfunction FReadFloat(id);
dllfunction FWriteInt(id,long);
dllfunction FReadInt(id);
dllfunction FWriteDouble(id,long);
dllfunction FReadDouble(id);
dllfunction FWriteShort(id,long);
dllfunction FReadShort(id);
dllfunction FWriteBool(id,long);
dllfunction FReadBool(id);
dllfunction FWriteAsc(id,long);
dllfunction FReadAsc(id);
dllfunction FWriteVar(id,long);
dllfunction FReadVar(id);
dllfunction FWriteString(id,str);
dllfunction FWriteStringEx(id,str,num);
dllfunction FReadString(id,num,str);
dllfunction FReadFile(id,str);
dllfunction FSaveCursor(id,id2); //bis zu 128 positionen speichern
dllfunction FLoadCursor(id,id2); //bis zu 128 positionen speichern
dllfunction FGetCursor(id);
dllfunction FGetLengthFromId(id);
dllfunction FGetLengthFromFile(str);
dllfunction FGetLengthFromFileInMb(str);
dllfunction FEreaseBytes(bytestart,byteend,filestr);

//download functions
dllfunction DFile(str1,str2);
dllfunction DGetMaxProgess(id);
dllfunction DGetProgess(id);
dllfunction DGetTarget(id,str);
dllfunction DGetSource(id,str);
dllfunction DStop(id);

//Registry functions
dllfunction RgOpenKey(str); //zum hauptverzeichnis öffnen einfach "" übergeben
dllfunction RgCloseKey();
dllfunction RgCreateKey(str);
dllfunction RgRemoveKey(str);
dllfunction RgChangeRegion(num);
dllfunction RgRemoveValue(str);
dllfunction RgCreateValueStr(name,str);
dllfunction RgGetValueStr(name,str);
dllfunction RgCreateValueBin(name,str);
dllfunction RgGetValueBin(name);
dllfunction RgCreateValueVar(name,val);
dllfunction RgGetValueVar(name);
dllfunction RgEnumValues(txt);
dllfunction RgEnumKeys(txt);

//obj functions
dllfunction obj_gettype(obj);

//entity functions
dllfunction ent_getskill(ent,num);
dllfunction ent_setskill(ent,num,val);

//string functions
dllfunction str_getlength(str); //get max length
dllfunction str_getpath(str); //copys game folder into str
dllfunction str_islower(str);
dllfunction str_isupper(str);
dllfunction str_isabc(str);
dllfunction str_isnum(str);
dllfunction str_getasc(str,num);
dllfunction str_setasc(str,num,asc);
dllfunction str_tok_float(str,str2); //%f
dllfunction str_tok_int(str,str2); //%d
dllfunction str_tok_string(str,str2,str3); //%s

//windows dialog functions
dllfunction Dialog_OpenFile(title,types,direct);
dllfunction Dialog_SaveFile(title,types,direct,standardsave);
dllfunction Dialog_messagebox(title,inhalt,style,type);
dllfunction Dialog_SearchFolder(title,abs_,loc_);
dllfunction Dialog_enablefullscreen(on_off);

//open program functions
dllfunction open_ie(homepage);
dllfunction open_internet(homepage);
dllfunction open_notepad(file);
dllfunction open_program(program,file);
dllfunction open_file(file); //"" for game folder in explorer
dllfunction open_chm(chm_file);

//functions that change the acknex window
dllfunction window_minimize();
dllfunction window_setpos(xpos,ypos);
dllfunction window_settitle(title);
dllfunction window_gettitle(title);
dllfunction window_screenshot(str,&startpos,&extent,Type_);

//File functions
dllfunction Fl_Delete(str);
dllfunction Fl_Rename(str);
dllfunction Fl_SetAttributes(fl,attrib); //normal,readonly,hidden,system
dllfunction Fl_GetAttributes(fl);
dllfunction Fl_Copy(source,target_);
dllfunction Fl_GetCreationData(fl,&data); //5 array
dllfunction Fl_SetCreationData(fl,&data); //5 array
dllfunction Fl_SetReadData(fl,&data); //5 array
dllfunction Fl_GetName(str1,str2); //returns the relative path of a file

//folder functions
dllfunction Folder_Create(str);
dllfunction Folder_Remove(str); //failed mit inhalt
dllfunction Folder_RemoveEx(str); //mit inhalt
dllfunction Folder_RemoveContent(str); //nur inhalt
dllfunction Folder_RemoveContentEx(str,search_str); //search_str kann z.B. .tga sein

//functions getting informations about the PC
dllfunction PC_CpuSpeed();
dllfunction PC_GetHostName(name);
dllfunction PC_GetComputerName(name);
dllfunction PC_GetIp(ip_str);
dllfunction PC_GetRefreshRate();
dllfunction PC_GetAdamterName(str);
dllfunction PC_GetDriverName(str);
dllfunction PC_GetDriverVersion();
dllfunction PC_GetCPUUsage();

//bitmap functions
dllfunction bmp_getwidth(bmp);
dllfunction bmp_getheight(bmp);
dllfunction bmp_getsize(bmp,&vec);
dllfunction bmp_getinfo(bmp,&vec); //6 array, Width,Height,Format,Depth,MipLevels
dllfunction bmp_getformat(bmp);
dllfunction bmp_getmips(bmp);
dllfunction bmp_save(bmp,str); //nur bmp

//panel functions
dllfunction pan_getlayer(pan); //returns layer

//clipboard functions
dllfunction clipboard_copy(str);
dllfunction clipboard_paste(str);
dllfunction clipboard_clear(str);

//mp3 id3 functions
dllfunction mp3_getid3tags(str,txt); //txt mit 5 strings. title, artist, album, year, comment

//caps info functions
dllfunction caps_init();
dllfunction caps_VendorId();
dllfunction caps_SubSysID();
dllfunction caps_Revision();
dllfunction caps_DeviceID();
dllfunction caps_MaxTextureWidth();
dllfunction caps_MaxTextureHeight();
dllfunction caps_MaxAnisotrophy();
dllfunction caps_PixelShaderVersion();
dllfunction caps_VertexShaderVersion();

//windows info functions
dllfunction windows_getpath(str);
dllfunction windows_getversion();
dllfunction windows_getbuild();
dllfunction windows_GetDescription(str);

//check files/folders in a folder in many specific ways
dllfunction List_Files(folder,txt); //"*" for actual game folder
dllfunction List_Folders(folder,txt);
dllfunction List_FilesEx(folder,txt,ftype);
dllfunction List_FoldersEx(folder,txt,ftype);
dllfunction List_FilesCount(folder,ftype);
dllfunction List_FoldersCount(folder,ftype);
dllfunction List_FileNext(folder,str,type_,next); //type == "" wenn keine typauswahl, next = 0 beim start
dllfunction List_FolderNext(folder,str,searchstr,next); //* am ende

//math functions
dllfunction math_Rad2Deg(str);
dllfunction math_Deg2Rad(val,str);
dllfunction math_Num2Hexa(val,str);

//Gamma functions
dllfunction Gamma_Set(r,g,b);
dllfunction Gamma_SetRamp(&r,&g,&b); //256 arrays
dllfunction Gamma_GetRamp(&r,&g,&b); //256 arrays

//Ini functions
dllfunction Ii_WriteString(folder,name,val,file);
dllfunction Ini_WriteInt(folder,name,val,file);
dllfunction Ini_ReadString(folder,name,file,str_to_copy);
dllfunction Ini_ReadInt(folder,name,file);

//functions like ent_next for ALL object types. get pointer out of name. get name out of pointer
dllfunction bmp_getname(bmp,str);
dllfunction bmp_getpointer(str);
dllfunction bmp_next(bmp);
dllfunction str_getname(bmp,str);
dllfunction str_getpointer(str);
dllfunction str_next(str);
dllfunction view_getname(bmp,str);
dllfunction view_getpointer(str);
dllfunction view_next(str);
dllfunction mat_getname(bmp,str);
dllfunction mat_getpointer(str);
dllfunction mat_next(bmp);
dllfunction text_getname(bmp,str);
dllfunction text_getpointer(str);
dllfunction text_next(bmp);
dllfunction snd_getname(bmp,str);
dllfunction snd_getpointer(str);
dllfunction snd_next(bmp);
dllfunction font_getname(bmp,str);
dllfunction font_getpointer(str);
dllfunction font_next(bmp);

//text functions (for txt_create)
dllfunction text_setvisible(txt,val);
dllfunction text_settransparent(txt,val);
dllfunction text_setcenterx(txt,val);
dllfunction text_setcentery(txt,val);
dllfunction text_setcondensed(txt,val);
dllfunction text_setfilter(txt,val);
dllfunction text_setfont(txt,val);
dllfunction text_setalpha(txt,val);
dllfunction text_setoffsety(txt,val);
dllfunction text_setscalex(txt,val);
dllfunction text_setscaley(txt,val);
dllfunction text_setred(txt,val);
dllfunction text_setgreen(txt,val);
dllfunction text_setblue(txt,val);
dllfunction text_getvisible(txt);
dllfunction text_gettransparent(txt);
dllfunction text_getcenterx(txt);
dllfunction text_getcentery(txt);
dllfunction text_getcondensed(txt);
dllfunction text_getfilter(txt);
dllfunction text_getfont(txt);
dllfunction text_getalpha(txt,val);
dllfunction text_getoffsety(txt,val);
dllfunction text_getscalex(txt,val);
dllfunction text_getscaley(txt,val);
dllfunction text_getred(txt,val);
dllfunction text_getgreen(txt,val);
dllfunction text_getblue(txt,val);
dllfunction text_getstring(txt,num);
dllfunction text_setstring(txt,num,content);
dllfunction text_getstrings(txt);

dllfunction text_getstrwidth(txt,strnum,type_,&width_vec); //widthvec[0] = width, 1 = height

//change vars without having a pointer of them, just with the names of them (WITHOUT execute)
dllfunction V_Var2Var(str1,str2); //copys content of str2 into str1 (vars)
dllfunction V_SetVar(str1,str2);
dllfunction V_GetVar(str1);

dllfunction Font_FillArray(fname,hsize,width_array,type_); //3 = italic & bold, 2 = italic, 1 = bold, 0 = normal

//mp3 functions
dllfunction mp3_init(filename);
dllfunction mp3_play(id);
dllfunction mp3_playloop(id);
dllfunction mp3_stop(id);
dllfunction mp3_pause(id);
dllfunction mp3_resume(id);
dllfunction mp3_getposition(id);
dllfunction mp3_setposition(id,zeit);
dllfunction mp3_getplayback(id);
dllfunction mp3_setplayback(id,plaback);
dllfunction mp3_setbalance(id,vol);
dllfunction mp3_getlength(id);
dllfunction mp3_tune(id,vol,pan,loop);
dllfunction mp3_state(id);
dllfunction mp3_remove(id);
dllfunction mp3_inited(id);
dllfunction mp3_setvol(id,vol);
dllfunction mp3_getvol(id);
dllfunction mp3_looper(id);





have fun while reading.
I'm waiting for feature wishes.

sincerly
Timo Stark

Re: Dll of GameEdit - Function Preview [Re: TripleX] #96246
10/27/06 19:22
10/27/06 19:22
Joined: Oct 2006
Posts: 873
S
Shadow969 Offline
User
Shadow969  Offline
User
S

Joined: Oct 2006
Posts: 873
Impressive list
maybe add something like GetEngineDir()?

Last edited by Shadow969; 10/27/06 19:25.
Re: Dll of GameEdit - Function Preview [Re: Shadow969] #96247
10/28/06 06:48
10/28/06 06:48
Joined: Nov 2000
Posts: 1,534
hamburg
Samb Offline
Serious User
Samb  Offline
Serious User

Joined: Nov 2000
Posts: 1,534
hamburg
die abspielgeschwindigkeit bei mp3 sachen...
die vermisse ich scho seit deiner bigDLL und hat mich schon 7 extra dateien gekostet

Re: Dll of GameEdit - Function Preview [Re: Samb] #96248
10/28/06 12:05
10/28/06 12:05
Joined: Nov 2004
Posts: 888
B
beegee Offline
User
beegee  Offline
User
B

Joined: Nov 2004
Posts: 888
Wow, this a fantastic list. There are some extremely useful functions.


Fratch - Newer statistics panel for GameStudio
Re: Dll of GameEdit - Function Preview [Re: beegee] #96249
10/28/06 12:13
10/28/06 12:13
Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
frazzle Offline
Expert
frazzle  Offline
Expert

Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
Quote:

Wow, this a fantastic list. There are some extremely useful functions.




Same here TripleX, nice list !!
Btw, it took me about 5 min to read all the 240 functions so reading the list is helpfull and it doesn't take (relative) to long

Cheers

Frazzle


Antec® Case
Intel® X58 Chipset
Intel® i7 975 Quad Core
8 GB RAM DDR3
SSD OCZ®-VERTEX2 3.5 x4 ; HD 600 GB
NVIDIA® GeForce GTX 295 Memory 1795GB
Re: Dll of GameEdit - Function Preview [Re: frazzle] #96250
10/28/06 13:49
10/28/06 13:49
Joined: Nov 2004
Posts: 1,011
South Africa
capanno Offline
Serious User
capanno  Offline
Serious User

Joined: Nov 2004
Posts: 1,011
South Africa
One thing I really need is one that can rotate an image in a given dir. Like, I need to take a screenshot, rotate it and print it.

That would be awesome!

Re: Dll of GameEdit - Function Preview [Re: capanno] #96251
10/28/06 14:08
10/28/06 14:08
Joined: Oct 2002
Posts: 4,753
Munich, Bavaria, South of Germ...
TripleX Offline OP
Expert
TripleX  Offline OP
Expert

Joined: Oct 2002
Posts: 4,753
Munich, Bavaria, South of Germ...
@samb: mp3_setplayback(id,tmp); mp3_getplayback(id);

Re: Dll of GameEdit - Function Preview [Re: TripleX] #96252
10/28/06 14:15
10/28/06 14:15
Joined: Dec 2005
Posts: 478
India
M
msl_manni Offline
Senior Member
msl_manni  Offline
Senior Member
M

Joined: Dec 2005
Posts: 478
India
Functions that can retrive system information, like cpu-ID, HDD-CD-serial number etc for some copy protection.


My Specialities Limited.
Re: Dll of GameEdit - Function Preview [Re: msl_manni] #96253
10/28/06 15:07
10/28/06 15:07
Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
T
TWO Offline

Serious User
TWO  Offline

Serious User
T

Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
Dein Werk spricht für sich, klasse Arbeit! Hoff der Code wird irgendwann direkt in die Engine integriert.

Re: Dll of GameEdit - Function Preview [Re: TripleX] #96254
10/28/06 15:19
10/28/06 15:19
Joined: Nov 2000
Posts: 1,534
hamburg
Samb Offline
Serious User
Samb  Offline
Serious User

Joined: Nov 2000
Posts: 1,534
hamburg
Quote:

@samb: mp3_setplayback(id,tmp); mp3_getplayback(id);



o_o
15 verfluchte minuten habe ich verschwendet mit soundeditieren.. ^^

Page 1 of 2 1 2

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1