Author Topic: Sourceforge problems.  (Read 6646 times)

jeffdamann

  • *
  • Posts: 732
  • The ORIGINAL!
    • View Profile
Sourceforge problems.
« on: 2011-07-05 08:55:33 »
I have no Idea how to get the files of sourceforge short of downloading everything in every folder one at a time. Can some one walk me through how to use mercurial and sourceforge?

Akari

  • Moderator
  • *
  • Posts: 766
    • View Profile
Re: Sourceforge problems.
« Reply #1 on: 2011-07-05 10:48:19 »
I have no Idea how to get the files of sourceforge short of downloading everything in every folder one at a time. Can some one walk me through how to use mercurial and sourceforge?

You will need http://tortoisehg.bitbucket.org/
Then checkout project from here http://q-gears.hg.sourceforge.net:8000/hgroot/q-gears/q-gears

This is readonly url, but you will get whole repositary. You can grab link for read/write access on sourceforge. I already add you as developer.

Here is the sourceforge page https://sourceforge.net/scm/?type=hg&group_id=165417.
« Last Edit: 2011-07-05 10:56:54 by Akari »

jeffdamann

  • *
  • Posts: 732
  • The ORIGINAL!
    • View Profile
Re: Sourceforge problems.
« Reply #2 on: 2011-07-05 11:04:53 »
So I got the program, but what do I do with it? Ive been up all night lol. Do I just individually download all the files from my web browser or....?

Akari

  • Moderator
  • *
  • Posts: 766
    • View Profile
Re: Sourceforge problems.
« Reply #3 on: 2011-07-05 12:20:42 »
So I got the program, but what do I do with it? Ive been up all night lol. Do I just individually download all the files from my web browser or....?

Did you work with version control programs? Try read some simple manuals in site to understand how to work with it.
http://en.wikipedia.org/wiki/Distributed_revision_control
http://en.wikipedia.org/wiki/Mercurial

Simply it will download all files, update them, switch between branches, upload your changes to server and so on.

jeffdamann

  • *
  • Posts: 732
  • The ORIGINAL!
    • View Profile
Re: Sourceforge problems.
« Reply #4 on: 2011-07-05 12:29:08 »
Im missing something here lol.

The tortoisehq program is downlaoded. I chose to run the workbench. When I work inside that it seems I can only access stuff off my pc. How do I use it to access the repository?

Akari

  • Moderator
  • *
  • Posts: 766
    • View Profile
Re: Sourceforge problems.
« Reply #5 on: 2011-07-05 12:53:13 »
Im missing something here lol.

The tortoisehq program is downlaoded. I chose to run the workbench. When I work inside that it seems I can only access stuff off my pc. How do I use it to access the repository?

Choose "clone" opcions first. This will clone remote repositary to your PC. This can be done from workmench and from windows popup menu.

sithlord48

  • Moderator
  • *
  • Posts: 1632
  • Dark Lord of the Savegame
    • View Profile
    • Blackchocobo
Re: Sourceforge problems.
« Reply #6 on: 2011-07-05 14:56:21 »
ah the joys of version control :D to bad the mercurial hosting on sourceforge doesn't have a dl tarball option like their svn service does.

jeffdamann

  • *
  • Posts: 732
  • The ORIGINAL!
    • View Profile
Re: Sourceforge problems.
« Reply #7 on: 2011-07-07 03:12:45 »
Ok Ive got the repository, Ill begin familiarizing myself with the data and figure out a way to implement sound.

How should I go about this? Make code that plays sounds at specific times or...?

Is it possible to modify qgears to allow easy sound handling, like a custom tool?

Just trying to figure out the best route to follow here lol.

Akari

  • Moderator
  • *
  • Posts: 766
    • View Profile
Re: Sourceforge problems.
« Reply #8 on: 2011-07-07 12:27:57 »
Ok Ive got the repository, Ill begin familiarizing myself with the data and figure out a way to implement sound.

How should I go about this? Make code that plays sounds at specific times or...?

Is it possible to modify qgears to allow easy sound handling, like a custom tool?

Just trying to figure out the best route to follow here lol.

It already was implemented once in old source.

http://q-gears.hg.sourceforge.net/hgweb/q-gears/q-gears/file/b949ecad45b9/src_old/core/media

Most part of code can be taken from there. You need yo use additional library for this.
Create your own branch in mercurial and work in there. Just gather changes from me from time to time. I will not take it to main brunch until it will be compleated, but I can see changes and can give you some guidelines here.

First of all implement manager that handles sound. There are a lot of managers now, just copy main idea. Manager created in main() function and can be accessed from anywhere by getSingleton().
Next add xml reader for songs and sounds. It need to read something like this

Code: [Select]
<musics>
    <music name="Opening" file_name="music/opening.ogg" loop="10.5" />
</musics>

I already add placeholders for music description file in data directory.

Next thing is to add lua functions to handle playing sounds. There are already a lot of managers that was added to lua via luabind, just watch an examples.

That's it =)