Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, dr_panther, 2 invisible), 1,056 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 4 1 2 3 4
Standard Coding Library Needed? #163293
10/25/07 16:06
10/25/07 16:06
Joined: Oct 2006
Posts: 106
i_program_games Offline OP
Member
i_program_games  Offline OP
Member

Joined: Oct 2006
Posts: 106
I am wondering if anyone would be interested in a "standard" library. The library would be open source and maintained by the 3d Game Studio Community with the purpose of using the most widely accepted and quickest routines. How many times will we write functions to map keys? Initialize controls? Or how about a QuickSearch function? In my opinion this differs from the templates in that the templates are designed for 1 click solutions and not necessarily for code reuse. If there is enough interest I'll host the site (which I already have) and start a forum. Code like Mystic could also be added with permission of the author and improved if needed by the community.


Chaos is a paradox consistently inconsistent.
Re: Standard Coding Library Needed? [Re: i_program_games] #163294
10/25/07 16:32
10/25/07 16:32
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
I'll release exactly such a project to the community soon.

Re: Standard Coding Library Needed? [Re: TWO] #163295
10/25/07 16:46
10/25/07 16:46
Joined: Oct 2006
Posts: 106
i_program_games Offline OP
Member
i_program_games  Offline OP
Member

Joined: Oct 2006
Posts: 106
I'd like to host all proposed library code in once place as many contributions seem to become lost and unknown as time goes by. We'd always have links to the latest library as well as version control etc. How does this sound.

P.S. I don't care if it's posted in multiple places but I'd like to know if it exists that there is always one place I may find it for sure.


Chaos is a paradox consistently inconsistent.
Re: Standard Coding Library Needed? [Re: TWO] #163296
10/25/07 16:46
10/25/07 16:46
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
i was just thinking about something like this yesterday. a lite-c standard library really would be great!

what i miss in lite-c are ready to use data structures like vectors or maps in the c++ standard library.

Re: Standard Coding Library Needed? [Re: ventilator] #163297
10/25/07 17:02
10/25/07 17:02
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
Hehe, ventilator that was the reason for me to start such a lib. Currently there are LinkedLists, Nodetrees, PriorityQueues, Queues and Stacks, all well documented in Acknex-Docu like way

More ideas?

Re: Standard Coding Library Needed? [Re: TWO] #163298
10/25/07 17:30
10/25/07 17:30
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
can you give some usage examples for nodetrees?

what i would find very valuable is some kind of an associative array (for example like a c++ map or a python dictionary).

Re: Standard Coding Library Needed? [Re: ventilator] #163299
10/25/07 17:46
10/25/07 17:46
Joined: Mar 2007
Posts: 261
Germany
Thracian Offline
Member
Thracian  Offline
Member

Joined: Mar 2007
Posts: 261
Germany
I would highly appreciate such a library, but i wish that there would be "simple code" for modelleres as well


------------------------

All programmers are playwrights and all computers are lousy actors.
Re: Standard Coding Library Needed? [Re: ventilator] #163300
10/25/07 17:51
10/25/07 17:51
Joined: Oct 2006
Posts: 106
i_program_games Offline OP
Member
i_program_games  Offline OP
Member

Joined: Oct 2006
Posts: 106
There are many such data structures known as "trees". Wikipedia explains different ones here . However, I don't know where they are referenced in the documentation. Anyway, they can be created with a one dimensional array.


Chaos is a paradox consistently inconsistent.
Re: Standard Coding Library Needed? [Re: Thracian] #163301
10/25/07 17:52
10/25/07 17:52
Joined: Oct 2006
Posts: 106
i_program_games Offline OP
Member
i_program_games  Offline OP
Member

Joined: Oct 2006
Posts: 106
Quote:

I would highly appreciate such a library, but i wish that there would be "simple code" for modelleres as well




Please give an example of what you would find useful.


Chaos is a paradox consistently inconsistent.
Re: Standard Coding Library Needed? [Re: i_program_games] #163302
10/25/07 18:03
10/25/07 18:03
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
Nodetree code from the testing unit:

Code:

// Nodetree test
AG_Nodetree* Nodetree = AG_NodetreeCreate();

AG_Nodetree* NodetreeChild1 = AG_NodetreeAddChild( Nodetree );
AG_Nodetree* NodetreeChild2 = AG_NodetreeAddChild( Nodetree );
AG_Nodetree* NodetreeChild3 = AG_NodetreeAddChild( Nodetree );

AG_NodetreeSetItem( NodetreeChild1, "Nodetree: 1" );
AG_NodetreeSetItem( NodetreeChild2, "Nodetree: 2" );
AG_NodetreeSetItem( NodetreeChild3, "Nodetree: 3" );

AG_NodetreeRemoveChild( NodetreeChild1 );
AG_NodetreeRemoveChild( NodetreeChild2 );

AG_Nodetree* NodetreeTemp = AG_NodetreeGetNext( Nodetree, NULL );
Value = AG_NodetreeGetItem( NodetreeTemp );
printf( "%s", Value );

AG_NodetreeRemove( Nodetree );



Please note that the notetree structure is one of the more advanced structs resulting in more code.

Page 1 of 4 1 2 3 4

Moderated by  adoado, checkbutton, mk_1, Perro 

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