Welcome
Welcome to a320

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, join our community today!

S2DSDK Installation Guide

Any and all A320 homebrew topics

Moderator: Moderators

S2DSDK Installation Guide

Postby Wiredbomb0 on Sat May 09, 2009 11:12 am

Here it is for those who can not seem to get it working. Here it is:

REQUIRED FILES

DSOUND LIB
http://x11.gp2x.de/a320/2009161852273499.rar

CYGWIN-Related files
http://x11.gp2x.de/a320/20091214224673499.rar

S2DSDK-Related files
http://x11.gp2x.de/a320/200811281249773499.rar
http://x11.gp2x.de/a320/200918035573499.rar

Microsoft Visual C++ 2008 Express Edition
http://www.microsoft.com/express/vc/

Helloworldpixel (thanks to http://blog.tipesoft.com/)
http://blog.tipesoft.com/wp-content/plugins/download-monitor/download.php?id=12

Do not continue without these files!!!

INSTALLATION

Step A
Initilize


1a) Extract 20091214224673499.rar to C:\ (so the files within the archive are extracted to C:\cygwin\)

2a) Extract 200811281249773499.rar to C:\s2dsdk

3a) Extract 200918035573499.rar to C:\s2dsdk

4a) Install the Microsoft Visual C++ 2008 Express Edition (unless you haven't already)

5a) Apply these Environment Variables:

MIPSLIB
c:/cygwin/mipseltools/lib

MIPSTOOLS
c:/cygwin/mipseltools/include

S2DINC
c:/s2dsdk/inc

S2DLIB
c:/s2dsdk/lib

path
c:\cygwin\bin;c:\cygwin\mipseltools\bin;c:\windows\system32\;

(Thanks to Sience for this bug fix, this will stop you from getting that odd error asking for cmd.exe)

To apply these variables, head to 'My Computer', right-click and select 'Properties'. Click the 'Advanced', then click 'Environment Variables'. Click 'New' and add the variables one-by-one.

6a) Extract 2009161852273499.rar to C:\s2dsdk\lib (so the file will be located at C:\s2dsdk\lib\dsound.lib)

7a) Extract helloworldpixel.zip to any location, as the location will not matter. I would highly recommend you extract the archive to C:\s2dsdk, simply so you can keep track of the documents.

8a) Run the registry file 'C:\cygwin\cygwin.reg'

Step B
Process


1b) Load up Microsoft Visual C++ 2008 Express Edition.

2b) Select 'Open' and locate the folder where you extracted helloworldpixel.zip. Navigate to the win32 VS2008 folder, and select main.sln.

3b) Now that Microsoft Visual C++ 2008 Express Edition has loaded the file, you will need to compile the project. Select the green arrow (the > symbol) or simply press F5.

4b) If all things were successful, the helloworldpixel example, will compile and you will see the rare and fabled s2dsdk window. Yay! You have done it!

4.1b) If all things weren't successful, the helloworldpixel example, will not compile, and you will see an error. If you receive a:

Error: 1>Project : error PRJ0003 : Error spawning 'cmd.exe'.
Fix: Navigate to C:\WINDOWS\system32\ and find the file called 'cmd.exe'. Copy this file to the win32 VS2008 folder where the project is. Recompile the project, and hopefully, everything will work.

EXTRA NOTES

If the project compiles with some 'warnings', simply recompile the project, and those should be gone. I have no reason why they disappear when you just recompile.

I hope this guide will help someone. It took me some time, so if you would mind linking to this topic, rather then cutting and pasting the text else, that would be great. Thanks!

Thanks also goes to cdesign30 for suggesting the use of the win32 VS2008 rather then the win32 VS2005, which was converted to a later version.

If there is anything I'm missing, just reply here and I'll add it to the post!

Go and make some games already!

Peace!

-Wired
Last edited by Wiredbomb0 on Tue May 12, 2009 12:05 pm, edited 2 times in total.
Wiredbomb0
 
Posts: 238
Joined: Thu Apr 23, 2009 10:08 am
Location: Victoria, Australia

Re: S2DSDK Installation Guide

Postby SiENcE on Sat May 09, 2009 1:27 pm

Error: 1>Project : error PRJ0003 : Error spawning 'cmd.exe'.
Fix: Navigate to C:\WINDOWS\system32\ and find the file called 'cmd.exe'. Copy this file to the win32 VS2008 folder where the project is. Recompile the project, and hopefully, everything will work.


If you receive this, you should add "C:\WINDOWS\system32\" to your

path
c:\cygwin\bin;c:\cygwin\mipseltools\bin;

:-)
SiENcE
 
Posts: 75
Joined: Wed Apr 29, 2009 9:19 am
Location: Berlin/Germany

Re: S2DSDK Installation Guide

Postby Wiredbomb0 on Sat May 09, 2009 1:41 pm

Oh, well, isn't that interesting? Never had thought of that. Doesn't matter for me though. Thanks for sharing, that should help a few people!
Wiredbomb0
 
Posts: 238
Joined: Thu Apr 23, 2009 10:08 am
Location: Victoria, Australia

Re: S2DSDK Installation Guide

Postby cdesign30 on Sat May 09, 2009 2:20 pm

Excelent tutorial! I could not do it better.

Additionally I create a "template" folder with the "helloworldpixel" folders/files and when I need start a new project, simply I create a new folder with the project name and I copy the template contents to this new folder. Then I open the project in vs2008 from this new folder and add the required code.

Cheers, Doug.
cdesign30
 
Posts: 27
Joined: Sun Apr 26, 2009 8:04 pm

Re: S2DSDK Installation Guide

Postby Wiredbomb0 on Sat May 09, 2009 2:31 pm

Yeah, good idea. I am still yet to figure anything out. I have been able to set the screen width to 640, and it worked (which was cool). I'm trying to get it to play some music, but it ain't working. I don't know what to do, cause it needs some variables defined, but I don't know that correct data type. Apart from that, it's all running the way it's supposed to. It's good practice to muck around with the helloworldpixel example, simply so you can get used to entire way things work.

I just wanted to know, is the GameEngine::Render run once or 24 times per second (or whatever the fps is set at)?
Wiredbomb0
 
Posts: 238
Joined: Thu Apr 23, 2009 10:08 am
Location: Victoria, Australia

Re: S2DSDK Installation Guide

Postby cdesign30 on Sat May 09, 2009 2:40 pm

I just wanted to know, is the GameEngine::Render run once or 24 times per second (or whatever the fps is set at)?


Yes, the GameEngine::Render runs 24 times per second, ie, one time per screen refresh. See code from my another post showing quit app from Dingoo.

Cheers, Doug
cdesign30
 
Posts: 27
Joined: Sun Apr 26, 2009 8:04 pm

Re: S2DSDK Installation Guide

Postby welshmouse on Sun May 10, 2009 1:46 am

nice tutorial Wiredbomb. and you're now on dingoo-scene!
welshmouse
 
Posts: 108
Joined: Sun May 03, 2009 3:54 am

Re: S2DSDK Installation Guide

Postby Wiredbomb0 on Sun May 10, 2009 5:14 am

welshmouse wrote:nice tutorial Wiredbomb. and you're now on dingoo-scene!


I know! I saw this morning and I was like "Wow, that was quick!". Never really thought about it to be honest, I just thought that it was crap there was only a chinese and spanish guide, which to be honest, didn't help one bit.
Wiredbomb0
 
Posts: 238
Joined: Thu Apr 23, 2009 10:08 am
Location: Victoria, Australia

Re: S2DSDK Installation Guide

Postby welshmouse on Sun May 10, 2009 7:54 am

Wiredbomb0 wrote:
welshmouse wrote:nice tutorial Wiredbomb. and you're now on dingoo-scene!


I know! I saw this morning and I was like "Wow, that was quick!". Never really thought about it to be honest, I just thought that it was crap there was only a chinese and spanish guide, which to be honest, didn't help one bit.


yeah i can imagine.

good guide though, even though i wont be using it myself. dont think im talented enough to go making games. ill just keep passing judement on other people work :D
welshmouse
 
Posts: 108
Joined: Sun May 03, 2009 3:54 am

Re: S2DSDK Installation Guide

Postby Wiredbomb0 on Sun May 10, 2009 8:19 am

Fair enough. I would still recommend you try out the sdk. You never know, you might think of something that you can make. I'm having trouble getting text on the screen, and I'm sure that I'm not the only one with this problem.
Wiredbomb0
 
Posts: 238
Joined: Thu Apr 23, 2009 10:08 am
Location: Victoria, Australia

Next

Return to Homebrew

Who is online

Users browsing this forum: No registered users and 1 guest