Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 600 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 3 of 5 1 2 3 4 5
Re: A8 Version 8.012 Public Beta [Re: Lukas] #333194
07/14/10 17:38
07/14/10 17:38
Joined: Dec 2008
Posts: 1,218
Germany
Rackscha Offline
Serious User
Rackscha  Offline
Serious User

Joined: Dec 2008
Posts: 1,218
Germany
@Lukas:

Using one bracket isnt heavy enough^^.
My old cube project had a 3 dimensional cube struct...imagen that kind of bracket-war o.o.


MY Website with news of my projects:
(for example my current
Muliplayer Bomberman,
GenesisPrecompiler for LiteC
and TileMaster, an easy to use Tile editor)
Sparetime-Development

Re: A8 Version 8.012 Public Beta [Re: Rackscha] #333199
07/14/10 17:50
07/14/10 17:50
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
"My old cube project had a 3 dimensional cube struct...imagen that kind of bracket-war o.o."
Hmm... wait a second! I discovered something very weird! This sentence reminded me that for Kubetris I used a 3-dimensional array and for one of my current projects I even use a 4-dimensional array and they work without any problems.

And I found out why mine work and yours don't: If you define an array the "usual" way, like this:
int array[10][10];
then it works! But if you define it like you did:
int **array;
then it doesn't work! This means, Lite-C distinguishes between arrays and pointers!! But normally each defined pointer can be used as an array and compilers shouldn't make a difference between them. But apparently, Lite-C does.

Now I realize that jcl could have meant that you defined your array as a pointer. I guess that's why he put the word "array" into quotation marks. But it still should work!

Re: A8 Version 8.012 Public Beta [Re: Lukas] #333205
07/14/10 18:39
07/14/10 18:39
Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
that is one advantadge of lite-c i guess, it knows what is pointer and what is not, so it can understand what you meant at somepoint (i.e. when a function needs a pointer and you pass a variable instead, it recognizes the variable and understands you meant pointer and acts as the way you meant.)

I would not always want it to get pointer pointers as arrays, so it's good this way i guess?


*:did anyone understand what i am talking about grin ?


3333333333
Re: A8 Version 8.012 Public Beta [Re: Quad] #333206
07/14/10 18:53
07/14/10 18:53
Joined: Jun 2008
Posts: 402
Germany
S
sebbi91 Offline
Senior Member
sebbi91  Offline
Senior Member
S

Joined: Jun 2008
Posts: 402
Germany
@jcl: Pease check your PM.
I sent the "bug-file to you.

hope you can fix it.

regards
Basti


3D-Gamestudio A8 - Commercial
Re: A8 Version 8.012 Public Beta [Re: sebbi91] #333208
07/14/10 19:15
07/14/10 19:15
Joined: Dec 2008
Posts: 1,218
Germany
Rackscha Offline
Serious User
Rackscha  Offline
Serious User

Joined: Dec 2008
Posts: 1,218
Germany
@LUkas: It wa ssupposed to be used as pointer, cause the system needs to be FLEXIBLE.
A fixed array is no problem but not suitable.


GReets
Rackscha


MY Website with news of my projects:
(for example my current
Muliplayer Bomberman,
GenesisPrecompiler for LiteC
and TileMaster, an easy to use Tile editor)
Sparetime-Development

Re: A8 Version 8.012 Public Beta [Re: Rackscha] #333215
07/14/10 20:37
07/14/10 20:37
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
hey guys, i played around with the new physics engine and i think, it's very easy to create a cool physics game, if you use PH_CHAR for actors!
you can download my sample project (some strange football/soccer game) here:
Football Game
The controls are W,A,S,D to walk, SPACE to kick the ball and ESC to exit. Look aound with the mouse.

Try it!


Visit my site: www.masterq32.de
Re: A8 Version 8.012 Public Beta [Re: Rackscha] #333216
07/14/10 20:37
07/14/10 20:37
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
@Quadraxas: Yeah that's the pointer protection, but this doesn't have to make it have different operator priorities for arrays and pointers. And if you call an array just by its name, it's considered a pointer to the first array element (which is then protected wink ). Basically there is no big difference between arrays and pointers. And they should be treated the same.

@Rackscha: I didn't mean you should use fixed arrays. I was just telling that fixed arrays work correctly, but "pointer arrays" don't. And I think Lite-C should be changed to make it work.

And I also noticed that you can't define pointers of indefinite size, like it can be useful in function parameters:
void myfunction(int myarray[]) // works in C/C++, but not in Lite-C
This means, even if you use fixed arrays, but want to pass them as parameter to a function, you have to use them as pointers, and then have to use the brackets!

Re: A8 Version 8.012 Public Beta [Re: Lukas] #333217
07/14/10 20:45
07/14/10 20:45
Joined: Jul 2009
Posts: 1,198
Berlin, Germany
L
Liamissimo Offline
Serious User
Liamissimo  Offline
Serious User
L

Joined: Jul 2009
Posts: 1,198
Berlin, Germany
@Richi: Nothing works. Just a voice saying hurry up. If I press WASD (i read your script) nothing happens. But I have got the same problem, also another user, we are waiting for help.

MAYBE it has to do sth. with the grpahic card? Mine is a ATI x1400 Mobility Radeon with 128Mb

Last edited by TheLiam; 07/14/10 21:03.

"Ich weiss nicht genau, was Sie vorhaben, aber Sie können keine Triggerzonen durch Ihr Level kullern lassen."
-JCL, 2011
Re: A8 Version 8.012 Public Beta [Re: Liamissimo] #333218
07/14/10 21:19
07/14/10 21:19
Joined: Jun 2008
Posts: 402
Germany
S
sebbi91 Offline
Senior Member
sebbi91  Offline
Senior Member
S

Joined: Jun 2008
Posts: 402
Germany
only the .exe isnt working!
You can test it with "run current script"

@Richi007 : Not bad, its nice^^


3D-Gamestudio A8 - Commercial
Re: A8 Version 8.012 Public Beta [Re: sebbi91] #333221
07/14/10 21:30
07/14/10 21:30
Joined: Jul 2009
Posts: 1,198
Berlin, Germany
L
Liamissimo Offline
Serious User
Liamissimo  Offline
Serious User
L

Joined: Jul 2009
Posts: 1,198
Berlin, Germany
Yes, tested it. Nice game, I dont talk about graphics or kinda like that because it really just is a demonstration of phsx.


"Ich weiss nicht genau, was Sie vorhaben, aber Sie können keine Triggerzonen durch Ihr Level kullern lassen."
-JCL, 2011
Page 3 of 5 1 2 3 4 5

Moderated by  Matt_Coles 

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