Emuforums.com

Go Back   Emuforums.com > Gamecube Emulation > Dolphin Discussion
Home Register Downloads FAQ Members List Calendar Arcade Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
Old September 6th, 2008   #1 (permalink)
Registered User
 
EmanueleITA88's Avatar
 
Join Date: Feb 2007
Location: Italy
Posts: 43
Programming Dolphin

Hi, i would like to learn basics how to programming in order to give my contribute to this project.
What programming language shoul I learn?? (at least basics)?? what should I use? (Java, C ++??)
thanks for your answers



Added
ok ok found, the emu is written in C++ and i should use a freeware program called Dev C++ in order to compile it.
I'm starting to follow a 50 lesson youtube tutorial on C++

Last edited by EmanueleITA88; September 6th, 2008 at 20:42.. Reason: Automerged Doublepost
EmanueleITA88 is offline   Reply With Quote

Advertisement [Remove Advertisement]
Old September 6th, 2008   #2 (permalink)
Chased by Hot Chicks.
 
RedLion's Avatar
 
Join Date: Jul 2006
Location: Where hot women are. In my bed.
Posts: 2,591
Quote:
Originally Posted by EmanueleITA88 View Post
Hi, i would like to learn basics how to programming in order to give my contribute to this project.

What programming language shoul I learn?? (at least basics)?? what should I use? (Java, C ++??)

thanks for your answers

ok ok found, the emu is written in C++ and i should use a freeware program called Dev C++ in order to compile it.

I'm starting to follow a 50 lesson youtube tutorial on C++
Hum...Do you know algorithmic language? The coding langage is just a traduction of it. If yes, you can start to learn a coding langage. Then for emulation, there are others problems to solve. Especially try to code in a project already started by others skilled programmers.....
RedLion is offline   Reply With Quote
Old September 6th, 2008   #3 (permalink)
******
 
Join Date: Jul 2008
Posts: 1,188
Quote:
Originally Posted by EmanueleITA88 View Post
Hi, i would like to learn basics how to programming in order to give my contribute to this project.
What programming language shoul I learn?? (at least basics)?? what should I use? (Java, C ++??)
thanks for your answers



Added
ok ok found, the emu is written in C++ and i should use a freeware program called Dev C++ in order to compile it.
I'm starting to follow a 50 lesson youtube tutorial on C++
a tutorial? Dolphin is a lot more complicated than you think. You also you have to learn about emulation, x86-x64 and PowerPC architecture, WxWidgets API, OpenGL API, DirectX API, zlib API, and also how the Gamecube hardware works. If you want to fully fix and improve Dolphin. Also if you are good at C++, maybe you can fix the warnings and fix code where it converts to another variable type the correct way.
omegadox is offline   Reply With Quote
Old September 6th, 2008   #4 (permalink)
Emu author
 
shashClp's Avatar
 
Join Date: Sep 2006
Location: VisualC
Posts: 1,055
Quote:
Originally Posted by omegadox View Post
(...) Also if you are good at C++, maybe you can fix the warnings and fix code where it converts to another variable type the correct way.
That's called a type cast, or simply, a cast :P
__________________
Emulator development blog
shashClp is offline   Reply With Quote
Old September 7th, 2008   #5 (permalink)
******
 
Join Date: Jul 2008
Posts: 1,188
Quote:
Originally Posted by shashClp View Post
That's called a type cast, or simply, a cast :P
Yeah I know, int var1 = (int) doubleVar1; it will cause a warning on that, but I think there is some safe type cast function you can call.
omegadox is offline   Reply With Quote
Old September 7th, 2008   #6 (permalink)
Emu author
 
shashClp's Avatar
 
Join Date: Sep 2006
Location: VisualC
Posts: 1,055
Quote:
Originally Posted by omegadox View Post
Yeah I know, int var1 = (int) doubleVar1; it will cause a warning on that, but I think there is some safe type cast function you can call.
On C++ AND VisualC2k8 (neither 2k5 or 2k3), it won't get a warning even on Warning level 4 (highest one). That's what a cast is meant to acknowledge, a type change even if from floating point to integer. At least, a basic type cast, for classes/structs it gets a bit more complicated, but I don't want to get this too long. And if you know that, why don't call it by it's name? :P

Last edited by shashClp; September 7th, 2008 at 01:11..
shashClp is offline   Reply With Quote
Old September 7th, 2008   #7 (permalink)
AEON'S HERITAGE
 
hanibal81's Avatar
 
Join Date: Apr 2006
Location: Tamazgha
Posts: 2,042
Quote:
Originally Posted by omegadox View Post
a tutorial? Dolphin is a lot more complicated than you think. You also you have to learn about emulation, x86-x64 and PowerPC architecture, WxWidgets API, OpenGL API, DirectX API, zlib API, and also how the Gamecube hardware works. If you want to fully fix and improve Dolphin. Also if you are good at C++, maybe you can fix the warnings and fix code where it converts to another variable type the correct way.
I think a better choice he has is to focus on one part of the console, means plugins (GPU/SPU/PAD/CDR) that helps a lot.
__________________

العرب بدو الفلاة، رعاة النوق اكتشفوا الصفر وظل لصيقاً بهم وفياً لهم حتى تمنوا التبرء منه وعيروني بالواحد الأحد
1 = Aothem, 0 = Thaothemth ^_^


| Markunda Princess of Tamazgha(^_^) | Tinariwen | General Emulation | Xtemulation |
hanibal81 is offline   Reply With Quote
Old September 7th, 2008   #8 (permalink)
******
 
Join Date: Jul 2008
Posts: 1,188
Quote:
Originally Posted by hanibal81 View Post
I think a better choice he has is to focus on one part of the console, means plugins (GPU/SPU/PAD/CDR) that helps a lot.
well if he can improve any of the plugins, need work on D3D9 plugin, I think it needs stenciling supported.
omegadox is offline   Reply With Quote
Old September 7th, 2008   #9 (permalink)
Registered User
 
EmanueleITA88's Avatar
 
Join Date: Feb 2007
Location: Italy
Posts: 43
Ok, first let me time to learn then to improve

In any case learning something about c++ can't hurt me, right?
EmanueleITA88 is offline   Reply With Quote
Old September 7th, 2008   #10 (permalink)
Registered User
 
Join Date: Dec 2003
Posts: 137
C or C++ is the same difficulty.
mmm... i suggest to you to lokk on other simpler projects to learn.
maybe i'm worng but:

Learn something about alghoritm.
Learn about C and C++ syntax.
Focus on typecasting , pointer and structures.
Learn some basics about windows api ( loading files , drawing graphics on directx)
Try to understand a simpler project like an z80 emu to understand what emulation means ( interpreting, recompiling ? )
Then look at the dolphin source code....

maybe i'm worng but every step i described here is a lot to study.
(i'm italian, try pm me if you need assistance i try to help )
AndreaB is offline   Reply With Quote
Old September 8th, 2008   #11 (permalink)
Banned
 
Join Date: Feb 2007
Location: Lost.
Posts: 1,767
Quote:
mmm... i suggest to you to lokk on other simpler projects to learn.
Exactly.

I'm going to be extremely blunt:

EmanueleITA88: You are in over your head. You expect to learn C++ real quick just to help Dolphin?

Seriously, learning to program AND program well is NOT something you can do overnight. You have a long, very long way to go, if you are starting from scratch (which is what I notice).

Quote:
I'm starting to follow a 50 lesson youtube tutorial on C++
You need a lot more than that. You need practical experience, as well. And I bet those YouTube lessons miss some valuable lessons.....

Last edited by mudlord; September 8th, 2008 at 06:25.. Reason: Automerged Doublepost
mudlord is offline   Reply With Quote
Old September 8th, 2008   #12 (permalink)
Registered User
 
Join Date: Nov 2007
Location: close enough
Posts: 34
Sorry, I have to agree with AndreaB and mudlord. Anyway, I'll try to turn that in a more positive way.
I'm playing around with dolphin for 2 weeks now. I'm still screwed up with a big part of the code ( and I have few years of background ).
But, to encourage you, all that looooong learning journey is exciting. (it never ends )

My humble advice is:
Start learning how the engine (CPU) work before starting with C. It's the most difficult, the most amazing and the most important part. Then you will guess quite perfeclty (not my case anymore ) how C/C++ and higher langage really works. And then "very efficient code you will write, may the force be with you, etc." as sayd a friend of mine

to do that:
1) go to school
2) grab some 8086 (intel basic CPU) or 80C50 (intel very basic microcontroler) tutorials, emulators and DSK. You should easily google that.
3) make you a good cup of coffee (not mandatorry)
4) read readmes, howtos.
5) play around with sample codes.
6) make your own program.
7) have fun.
memberTwo is offline   Reply With Quote
Old September 8th, 2008   #13 (permalink)
Registered User
 
EmanueleITA88's Avatar
 
Join Date: Feb 2007
Location: Italy
Posts: 43
Ok i'm realizing that compile a program is not so easy as i tought... maybe i will not help this project, however i'll try learning some basics.

Maybe i will be a programmer of tomorrow

ps
Thx AndreaB, if a have problems I'll ask u.
EmanueleITA88 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 08:07.

© 2006 - 2008 Emu Forums | About Emu Forums | Legal | A member of the Crowdgather Forum Community


Powered by vBulletin® Version 3.7.6
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5