The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
December 07, 2022, 09:52:34 pm
Home Help Search Login Register
News: Celebrating 30 years of Star Control 2 - The Ur-Quan Masters

+  The Ur-Quan Masters Discussion Forum
|-+  The Ur-Quan Masters Re-Release
| |-+  Starbase Café (Moderator: Death 999)
| | |-+  Programming
« previous next »
Pages: [1] 2 3 4 Print
Author Topic: Programming  (Read 5787 times)
Valos Cor
*Many bubbles*
***
Offline Offline

Gender: Male
Posts: 154



View Profile
Programming
« on: July 18, 2010, 05:04:53 am »

I'm interested in learning how to start modding the UQM code - starting with simple stuff like editing the dialogue etc - and learning the C programming language.  Those of you who know how to mod or know C...how did you learn?  How did you start off?  I'd appreciate knowing how you did it so I'd know how I should do it.
Logged

I'm the kind of person that uses Linux and seems to be a very literate adult but has no idea how to do anything code-wise beyond basic stuff.(such as su -<password> yum install uqm) Except I didn't install UQM that way...I used Add/Remove Software...
onpon4
Enlightened
*****
Offline Offline

Gender: Male
Posts: 709


Sharing is good.


View Profile WWW
Re: Programming
« Reply #1 on: July 18, 2010, 05:36:20 am »

There's some video tutorials on C and C++ by a user called "thenewboston". I don't know how good they are, but a lot of people seem to like his tutorials.
Logged

Valos Cor
*Many bubbles*
***
Offline Offline

Gender: Male
Posts: 154



View Profile
Re: Programming
« Reply #2 on: July 18, 2010, 05:44:48 am »

So what is thenewboston a member of? I'm not getting anything searching in this forum.  I would like to see the tutorials but also, I'd like to know how those of you who started modding or learning the code, started learning it.
Logged

I'm the kind of person that uses Linux and seems to be a very literate adult but has no idea how to do anything code-wise beyond basic stuff.(such as su -<password> yum install uqm) Except I didn't install UQM that way...I used Add/Remove Software...
onpon4
Enlightened
*****
Offline Offline

Gender: Male
Posts: 709


Sharing is good.


View Profile WWW
Re: Programming
« Reply #3 on: July 18, 2010, 05:50:37 am »

YouTube. Sorry about that.
Logged

Valos Cor
*Many bubbles*
***
Offline Offline

Gender: Male
Posts: 154



View Profile
Re: Programming
« Reply #4 on: July 18, 2010, 05:53:08 am »

Thanks, I found him - and about a hundred and something tutorials about all sorts of things, including C.
Logged

I'm the kind of person that uses Linux and seems to be a very literate adult but has no idea how to do anything code-wise beyond basic stuff.(such as su -<password> yum install uqm) Except I didn't install UQM that way...I used Add/Remove Software...
Valos Cor
*Many bubbles*
***
Offline Offline

Gender: Male
Posts: 154



View Profile
Re: Programming
« Reply #5 on: July 18, 2010, 06:06:49 am »

I rewound the tutorials from 20 or 30 or 40 something to tutorial number one about objective c programming and the guy is using Mac...I guess there might be a way to do whatever he's doing on Linux or Windows.

EDIT: Sigh...that was objective C...there's more than a hundred tutorials... more like 350.
« Last Edit: July 18, 2010, 06:10:08 am by Valos Cor » Logged

I'm the kind of person that uses Linux and seems to be a very literate adult but has no idea how to do anything code-wise beyond basic stuff.(such as su -<password> yum install uqm) Except I didn't install UQM that way...I used Add/Remove Software...
onpon4
Enlightened
*****
Offline Offline

Gender: Male
Posts: 709


Sharing is good.


View Profile WWW
Re: Programming
« Reply #6 on: July 18, 2010, 01:27:02 pm »

I rewound the tutorials from 20 or 30 or 40 something to tutorial number one about objective c programming and the guy is using Mac...I guess there might be a way to do whatever he's doing on Linux or Windows.

EDIT: Sigh...that was objective C...there's more than a hundred tutorials... more like 350.

Objective C is a little different than C (it's used for iPhone apps). You should look at his C or C++ tutorials.

Of course, you could also try getting a book.
Logged

Gekko
*Many bubbles*
***
Offline Offline

Gender: Male
Posts: 199


Arena regular


View Profile
Re: Programming
« Reply #7 on: July 18, 2010, 02:32:50 pm »

I started by typing to google: "How to code c++". I learned playing guitar the same way. And I'm learning piano that way too.
Logged

Visit #uqm-arena and play a game of Net Melee!
Try the Net Melee Improvement mod
xaionaro
Zebranky food
*
Offline Offline

Gender: Male
Posts: 10


Just a melee-player


View Profile
Re: Programming
« Reply #8 on: July 19, 2010, 09:40:44 am »

I'm interested in learning how to start modding the UQM code - starting with simple stuff like editing the dialogue etc - and learning the C programming language.  Those of you who know how to mod or know C...how did you learn?  How did you start off?  I'd appreciate knowing how you did it so I'd know how I should do it.
IMHO:
That's depend on how you want to programming. If you want to write good code, than you need big practice or/and good theory basis (for example you can start with some book about C-syntax + "The Art of Computer Programming"). But if you only want only to make a "mod" with no care for quality of the code, than you can start with C-syntax learning and modifying small foreign programs. After that you can try to make own small program. Then you need to learn UQM source code and, for example, draw-up function/file relation map [there's no good development documentation Sad, so this can help to remember the code]. After that you can try to modify the UQM.
Logged

Ingenio stat sine morte decus
Dragon
Frungy champion
**
Offline Offline

Posts: 86



View Profile
Re: Programming
« Reply #9 on: July 19, 2010, 10:50:25 am »

You could take a look at Cymon's Games.  It's run by guesst (now cymon) who still lurks in these forums.  He's probably one of the best people here to weigh in on this topic.

For my part I'd suggest starting small before jumping into the UQM code.  It's possible to do some very strange and confusing things in C/C++ that could leave you scratching for a good while before working out why they work.
Logged
Valos Cor
*Many bubbles*
***
Offline Offline

Gender: Male
Posts: 154



View Profile
Re: Programming
« Reply #10 on: July 19, 2010, 08:34:14 pm »

Thanks,  I've been trying to read this book called "Using C++ And Introduction to Programming".

Thanks for talking about Cymon's Games - I've been trying to remember what that was called.

thenewboston's tutorials are a heap of help!

I've been trying to make a "stat generator" by having a random number generator (that generates it from the current time) generate 3 numbers and each one being a stat.  I am no where near success (and there has to be a max number too).  Maybe that's not simple enough hehe.  Those simple C programs thenewboston has been talking about - some of them remind me of making batch files...?
Logged

I'm the kind of person that uses Linux and seems to be a very literate adult but has no idea how to do anything code-wise beyond basic stuff.(such as su -<password> yum install uqm) Except I didn't install UQM that way...I used Add/Remove Software...
RTyp06
*Smell* controller
****
Offline Offline

Posts: 491



View Profile
Re: Programming
« Reply #11 on: July 19, 2010, 11:34:29 pm »

I think the most modern version of C and C++ is C# pronounced C "sharp" . I learned C back in the day by reading,practice, reading,practice and reading/practicing some more. This was before the huge volumes of header files, DLLs, code examples and walk throughs were available online. Most of the reference manuals and programming books I used were of the brand 'QUE'.

If I ever get serious about programming again, C# is the direction I plan to go.
Logged
onpon4
Enlightened
*****
Offline Offline

Gender: Male
Posts: 709


Sharing is good.


View Profile WWW
Re: Programming
« Reply #12 on: July 20, 2010, 12:22:33 am »

I think the most modern version of C and C++ is C# pronounced C "sharp" . I learned C back in the day by reading,practice, reading,practice and reading/practicing some more. This was before the huge volumes of header files, DLLs, code examples and walk throughs were available online. Most of the reference manuals and programming books I used were of the brand 'QUE'.

If I ever get serious about programming again, C# is the direction I plan to go.

Not quite. C# is a higher-level, proprietary language developed by Microsoft. It's probably best to not go in that direction, since there are possibly better, open source high-level languages available (i.e. Python).

There is also another interesting language based on C that I discovered near the beginning of 2nd semester last year, called C--, intended to be a lower-level (and therefore faster) language than C (i.e., assembly language). However, it probably isn't useful for most of us. Smiley
« Last Edit: July 20, 2010, 12:27:43 am by onpon4 » Logged

Valos Cor
*Many bubbles*
***
Offline Offline

Gender: Male
Posts: 154



View Profile
Re: Programming
« Reply #13 on: July 20, 2010, 12:24:46 am »

So what about graphics?  I'm thinking SDL.  So UQM is built on C right?  How did it implement the graphics?
Logged

I'm the kind of person that uses Linux and seems to be a very literate adult but has no idea how to do anything code-wise beyond basic stuff.(such as su -<password> yum install uqm) Except I didn't install UQM that way...I used Add/Remove Software...
Novus
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1938


Fot or not?


View Profile
Re: Programming
« Reply #14 on: July 20, 2010, 12:37:52 am »

I think the most modern version of C and C++ is C# pronounced C "sharp" .
C# is a bit of a cross between several other object-oriented C-like languages, including Java and C++. Most introductory programming courses I've seen lately use Java (with Python being strongly considered as a replacement), although I've seen arguments for using pretty much every language I've ever heard of as a first programming language, including quite a few written for that purpose.

I'm not going to write an article on the subject; here's an "objective" comparison. In practice, what's a "good" introductory programming language depends on you mean by "programming" and your priorities and goals, making the choice inherently subjective.

So what about graphics?  I'm thinking SDL.  So UQM is built on C right?  How did it implement the graphics?
UQM uses SDL and OpenGL for graphics; mostly SDL.
Logged

RTFM = Read the fine manual.
RTTFAQ = Read the Ur-Quan Masters Technical FAQ.
Pages: [1] 2 3 4 Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!