You are not logged in.
Lost Password?


Register To Post



 Bottom   Previous Topic   Next Topic

#1
gccVB, getting started . . .
Posted on: 2007/9/19 20:53
Nintendoid!
Joined 2007/8/8
Great Britain
201 Posts
CoderContributorHOTY09 EntryLong Time User (12 Years) App Coder
Okay, I installed Cygwin, downloaded vb_v810_gcc_03.tar.gz, unzipped the files in c:\cygwin\home\dasi\vb_v810_gcc_03, and ran ./make_v810.sh. Everything built successfully.

What do I need to do next?

dasi
Top

#2
Re: gccVB, getting started . . .
Posted on: 2007/9/20 1:05
Nintendoid!
Joined 2006/3/15
Ecuador
234 Posts
PVBCC 3rdCoderLong Time User (13 Years)
Begin to code!... just kidding... you should try one of the multiples homebrewn demos from the games section and modify it's code to understand how the VB display graphics... read the unofficial VB programmer's manual from David Tucker's site, and be a little patient while I release my sprite engine by the next month, which I hope will make a lot easier to develop games for the VB...

jorgeche
Top

#3
Re: gccVB, getting started . . .
Posted on: 2007/12/23 11:51
Nintendoid!
Joined 2007/8/8
Great Britain
201 Posts
CoderContributorHOTY09 EntryLong Time User (12 Years) App Coder
How are things progressing with your sprite engine, jorgeche?
Top

#4
Re: gccVB, getting started . . .
Posted on: 2007/12/24 16:33
Nintendoid!
Joined 2006/3/15
Ecuador
234 Posts
PVBCC 3rdCoderLong Time User (13 Years)
It's almost done... I have a very special demo about a game I hope everyone here will get excited of.

I'm fixing some bugs right now.

jorgeche
Top

#5
Re: gccVB, getting started . . .
Posted on: 2007/12/25 7:16
VB Gamer
Joined 2006/6/17
Greece
45 Posts
Long Time User (13 Years) 20+ Game Ratings
Great news !
Top

#6
Re: gccVB, getting started . . .
Posted on: 2007/12/25 23:22
VUE(xpert)
Joined 2006/9/29
USA
267 Posts
CoderLong Time User (13 Years) PVBCC 2010 3rd
Since I finally have access to fast enough internet, I downloaded gccVB, and right now I'm downloading and installing cygwin... Maybe I'll actually be able to start coding for VB soon!
Top

#7
Re: gccVB, getting started . . .
Posted on: 2007/12/30 7:37
VUE(xpert)
Joined 2006/9/29
USA
267 Posts
CoderLong Time User (13 Years) PVBCC 2010 3rd
Okay, I've run into a problem. After building gccVB, I downloaded the mariofly demo source (actually, I already had it) and tried to compile it with

$ v810-gcc mariofly.c -o mario.vb

but I keep getting errors. Specifically, I got lots of parse errors, and errors about misplaced "/"s. I tried to fix the errors, but as soon as I opened the source file, I realized that I didn't see any "/"s in the file. Help!?

P.S. I've also tried compiling simon, but ran into a similar problem. Any suggestions? Am I doing something wrong or is there something wrong with the input files/compiler? I've programmed in Visual Basic and I know a little bit of C, but I haven't done that much with compiled languages so I'm kinda clueless.
Top

#8
Re: gccVB, getting started . . .
Posted on: 2007/12/30 11:51
Administrator
Joined 2000/1/8
Germany
2516 Posts
Highscore Top10Highscore Top ScoreCoder#1 PosterHOTY09 1stLong Time User (15 Years) App Coder90+ Game Ratings
mario flying demo was written for vecc. i can't think of any source code written for gccvb other than the demos that came with the gccvb release before that one. we really need a well documented gccvb code sample for beginners, i think i should spend some hours on that...
Top

#9
Re: gccVB, getting started . . .
Posted on: 2007/12/30 23:07
VUE(xpert)
Joined 2006/9/29
USA
267 Posts
CoderLong Time User (13 Years) PVBCC 2010 3rd
Thanks KR155E. I'll try looking at the demos that came with the previous release. I really want to try writing some software for VB, the only problem is getting started.
Top

#10
Re: gccVB, getting started . . .
Posted on: 2008/1/1 6:24
VUE(xpert)
Joined 2006/9/29
USA
267 Posts
CoderLong Time User (13 Years) PVBCC 2010 3rd
Sorry for double-posting. I don't know if this will help, but I think I found the code that gccVB is having trouble with. I'm not familiar with this part of C syntax, so I don't know why the code is written like this, but v810-gcc 's problems seem to focus around these lines:

#define WORLD_GSET(n,gx,gp,gy) WAM[((n << 5) >> 1) + 1] = gx;\
WAM[((n << 5) >> 1) + 2] = gp;\
WAM[((n << 5) >> 1) + 3] = gy;
#define WORLD_MSET(n,mx,mp,my) WAM[((n << 5) >> 1) + 4] = mx;\
WAM[((n << 5) >> 1) + 5] = mp;\
WAM[((n << 5) >> 1) + 6] = my;
#define WORLD_SIZE(n,w,h) WAM[((n << 5) >> 1) + 7] = w;\
WAM[((n << 5) >> 1) + 8] = h;

#define SET_BRIGHT(a,b,c) VIP_REGS[BRTA]=a; \
VIP_REGS[BRTB]=b; \
VIP_REGS[BRTC]=c;

GccVB doesn't seem to recognize the backslashes (\) as correct syntax. However, I don't know anything else about this problem. These problems are found in libgccvb.h, which is required by many VB programs. Is there any way to rewrite this code to work with gccVB? (It looks like it was made to work with gccVB, so why doesn't it?)
Top

 Top   Previous Topic   Next Topic


Register To Post