Gamestudio Links
Zorro Links
Newest Posts
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
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Ayumi, 1 invisible), 584 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 5
Page 11 of 22 1 2 9 10 11 12 13 21 22
Re: 100 lines contest [Re: ventilator] #207773
05/22/08 08:10
05/22/08 08:10
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline OP
Senior Expert
HeelX  Offline OP
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Originally Posted By: ventilator
it would be good to to make the rules 100% clear once and for all so that there are no surprises.

<= 100 semicolons and <= 10240 bytes

is this right? these are the only two rules?


@JCL/Gorge: the problem is, that if you simply include the mtlFx.c or mtlView.c, you instantly exceed the 10kb limit.

So what do you think?

Re: 100 lines contest [Re: HeelX] #207775
05/22/08 08:25
05/22/08 08:25
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
jcl said that the files in the "include" and "code" folders won't be taken into account. you can use them.

Re: 100 lines contest [Re: ventilator] #207776
05/22/08 08:29
05/22/08 08:29
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline OP
Senior Expert
HeelX  Offline OP
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
And how will it then be differentiated when it comes to the file size? I mean, I included mtlFx.c and mtlView.c and I was over 100kb!

This leads to confusion. Maybe you just restrict it to the count of semicolons?

Re: 100 lines contest [Re: HeelX] #207777
05/22/08 08:33
05/22/08 08:33
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
why is this confusing? only your own code counts. i think the 10240 bytes limit is important because the 100 semicolon limit alone wouldn't be a very big hindrance.

Re: 100 lines contest [Re: jcl] #207779
05/22/08 08:40
05/22/08 08:40
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline OP
Senior Expert
HeelX  Offline OP
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Originally Posted By: jcl
Included files from the Gamestudio include folder and code folder don't count, so you can use acknex.h, default.c or the shaders from the code folder if you want.


I wrote the following:

Code:
#include <acknex.h>
#include <default.c>

#include "mtlView.c"
#include "mtlFx.c"

#include <stdio.h>
#include <windows.h>

int main ()
{
}


and compiled it with a result of 107.491 bytes.

Then, I compiled my project with exact the same includes and received 113.359 bytes.

So, am I right that my app is only 113.359 - 107.491 = 5868 bytes great with being < 10 240 bytes = 10 kB ?

Quote:
why is this confusing? only your own code counts. i think the 10240 bytes limit is important because 100 semicolons aren't really limiting.


I just want to know how to calculate the size of my compiled code without taking the permitted stuff into account.

Last edited by HeelX; 05/22/08 08:41.
Re: 100 lines contest [Re: HeelX] #207780
05/22/08 08:42
05/22/08 08:42
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
the exe doesn't matter at all. your code must not take more than 10240 bytes.

Re: 100 lines contest [Re: ventilator] #207781
05/22/08 08:44
05/22/08 08:44
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline OP
Senior Expert
HeelX  Offline OP
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
anything is good, as long as the code has less than 101 lines and the size of the .c file is smaller than 10 KB.

Yes.
Damn.

smile

Re: 100 lines contest [Re: HeelX] #207796
05/22/08 10:12
05/22/08 10:12
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline
Expert
Joozey  Offline
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
Does that include DLL's? :P


Click and join the 3dgs irc community!
Room: #3dgs
Re: 100 lines contest [Re: Joozey] #207862
05/22/08 18:59
05/22/08 18:59
Joined: Aug 2003
Posts: 2,011
Bucharest, Romania
George Offline

Expert
George  Offline

Expert

Joined: Aug 2003
Posts: 2,011
Bucharest, Romania
JCL is the sponsor, so he is the ultimate ruler wink
These are the contest rules as I understand them:
- The code must use a total of 100 semicolons (or less) and the resulting code file size must be 10,240 bytes (or less). If you use several code files, add their sizes - the total must be 10,240 bytes or less.
- The code that comes with GameStudio won't be taken into account. Feel free to include as many built-in code files as you want.
- The size of the executable doesn't matter.
- If you want to use a dll you have to provide the source code for it as well; the total number of semicolons (dll source + project source) must obey the <= 100 semicolons rule and the total file size must be 10,240 bytes or less.

Re: 100 lines contest [Re: George] #207985
05/23/08 20:02
05/23/08 20:02

M
mercuryus
Unregistered
mercuryus
Unregistered
M



Excuse me for my question but WHAT is estimated in this 100-code-lines-contest in the end?

- the entry with the most functionality
- the best idea (gamedesign)
- reusabitlity of templates
- the best looking entry (mostly reached by good graphics)
- the best (cryptic/compressed) script
- the best readable/undastandable/reusable code
- the best idea (recursions, math. algotithms, AI)

I'm a little confused to set the focus...

mercuryus

Page 11 of 22 1 2 9 10 11 12 13 21 22

Moderated by  George 

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