Original Post

Im Trying to make a game and I don’t understand some things. How do I convert the attached file into a .vb file?

6 Replies

Get the latest VBDE from the link below. It allows you to compile your code and run it in Mednafen with the click of a button. It comes with some sample projects you can modify to get started.

http://www.planetvb.com/modules/newbb/viewtopic.php?post_id=22265#forumpost22265

i have the latest version of VBDE already. How do I compile?

Providing you left everything as default you’ll want to use the notepade++.exe editor found in the editors\npp.6.2.3.bin.minimalist folder within the vbde folder. Open you c code file and you’ll see the second button from the left of the screen under the file menu looks like a little Green arrow pointing down. That is the compile button. It calls the makefile found in vbde->libs folder. So if you want to make any modifications to the compile options edit the makefile and when you press the compile button in notpad++ it will use your changes.

Almost forgot, make a new folder in the vbde->projects folder for your project and put your code in there. You’ll also need to make a .vbh file. Just copy from one of the sample projects and edit the file. Give it the same name as your main c file with a .vbh extension. The compile process should build a .vb file with your main file name.

Good luck

As a small addendum to Greg’s instructions, you’ll want to erase the last line in the file (“make.bat c:\gccvb\thing\ MMXVB”) before compiling. This is a command used to run the compiler, and isn’t part of the actual VB code. It will confuse the compiler and prevent it from making a working ROM (or any ROM at all, actually). You’ll probably also want the file to end with a .c extension, rather than .txt.

Where do I find the .vb file after I compile?

Same folder as the .c file you ran the compile against. It will only be there if the compile was successful.

 

Write a reply

You must be logged in to reply to this topic.