Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 11 Mar 2011
Offline Last Active Feb 26 2015 07:21 AM

#5164284 Installer for Linux?

Posted by on 02 July 2014 - 05:58 AM

As mentioned above, there are a few different package manager in use. You should at least support .deb, .rpm to target the most widely used distros (i.e. Ubuntu and Fedora). You can also provides packages for archlinux based distributions through the AUR.


For debian packages, I recommend using a PPA. There might be an equivalent service for building and distributing rpm but I personally don't know any (I am an arch linux user)



What about adding entries to their application launcher of choice (ie kickstart menu on KDE or whatever)?


You do that with desktop entries: http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html. This will work regardless of the desktop environment.

#5147623 Python 3 + Linux terminal

Posted by on 17 April 2014 - 07:13 AM

To open a new terminal from a python application you must start it in a new subprocess:


subprocess.Popen(['gnome-terminal', '-e'])
To communicate with the opened terminal you may want to use the pexpect library, it will help you write to the terminal stdin and get the terminal stdout.


That being said, I have no idea how you can retrieve an existing tty handle and write to its stdout.

#5144293 Documenting scripting language in application

Posted by on 04 April 2014 - 03:05 AM

Maybe you could have a look at sphinx?


This is one of the documentation tool used for python but can be used for any other languages as long as you don't require automatic extraction. 


You can create cross references in your documentation, you can even add custom domains to add support for DSL and the likes. You write your docs using restructuredText which is quite nice and easy to use (no to very little manual formatting).

#5144087 How to communicate between c++ and c#?

Posted by on 03 April 2014 - 07:34 AM


Use something like SWIG as Colin mentioned, it basically is automatically creating bindings for you. Personally I don't like added dependencies.


What dependency are you talking about? AFAIK swig does not add any runtime dependency to your bindings, it's just a tool that you can drop in your project folder, you can even invoke it automatically whenever you rebuild your c++ project and have always up to date bindings. (note that I only used swig for python bindings, not C#).

#5140659 playing sounds in python 3

Posted by on 20 March 2014 - 08:27 AM

> Can anyone here recommend a simple way to play sounds files in python 3+ that works on WIndows and Linux?


You could also try PySFML (http://python-sfml.org/)

#5140326 Editing a Python Script during Runtime?

Posted by on 19 March 2014 - 09:19 AM


What does the C++ code for " Reloading " a  python script look like?


The python C api has a function just for that: PyImport_ReloadModule

#5137882 Need help embedding python script in c++

Posted by on 10 March 2014 - 01:10 PM

I am a bit rusty on embedding python but I think PyRun_String should do what you want if you pass Py_eval_input or Py_file_input for the start parameter.

#5134123 C++ IDEs for Linux

Posted by on 24 February 2014 - 10:12 AM


With that said, CMake and Premake don't support generation of project files for KDevelop or QtCreator, whereas they do support Code::Blocks.


Yes, because QtCreator and KDevelop support CMake projects natively, i.e. you don't have to generate anything. If you make changes in your CMakeLists.txt, those changes will be immediately reflected in the IDE.

#5124114 Engine with best skeletal animation support?

Posted by on 16 January 2014 - 06:55 AM

Have a look at Horde3D, it has a solid skeletal and morph animation system which support multiple animation layer and manual joint transformations (a joint is a regular scene node which animates the bones of the model)

#5113681 Need more than 1 value to unpack?

Posted by on 02 December 2013 - 02:26 AM

Is there anything wrong in my script thank you very much



You have to call it with at least 3 arguments!




If you execute this:

$ python ex13.py first 2nd 3rd

You should see this:

The script is called: ex13.py
Your first variable is: first
Your second variable is: 2nd
Your third variable is: 3rd


#5075068 Python 3.3 on Windows 8?

Posted by on 03 July 2013 - 11:53 AM

I do not have windows 8 but googling "windows 8 set path" and "windows 8 open terminal" leads me to those tutorials that seems to cover your needs:




After you've completed the above steps, type the following lines in the terminal. 

print("Hello world")

Paste the results here if doesn't work as expected.

#5066125 what does 'w' mean in shader assembler

Posted by on 30 May 2013 - 07:17 AM

is there some concrete context 'homogeneous' applies

Yes it applies to transforms (translation, projection,...) which are used extensively in every game.


If you don't understand homogeneous coordinate how can you understand perspective projection? If you don't understand perspective projection, how do you setup a camera for your 3D game? Of course you can follow a tutorial/manual without understanding what's happening and have a working 3D camera but whenever you will have to debug or adapt the code you'll be lost.


Linear algebra is something that every game developer should know!

#5066102 what does 'w' mean in shader assembler

Posted by on 30 May 2013 - 05:22 AM

but i do not agree with your opinion, i am using api, not designing api

I do not agree with your opinion. Even if you are just using the API, you will have to deal with matrix transformations at some point in your game and you will have to understand what are homogeneous  coordinates to do it right.


Even if your API provides a complete math framework, you will have to know how to use it. To know how to use it you will have to learn maths and linear algebra.

#5054639 How to use the same system shell all the time in python

Posted by on 18 April 2013 - 11:46 AM

It works fine for me under Ubuntu 12.10, Python 2.7.3.


 What is the output of the following script?


import os
print os.system("x=15\necho $x")


I have the following output:



#5054540 How to use the same system shell all the time in python

Posted by on 18 April 2013 - 06:51 AM

after first use the defined variable does not exist anymore.


When you call os.system, a new child process with a new environment is created. See this discussion for more details: http://stackoverflow.com/questions/1506579/why-doesnt-os-systemset-foo-bar-work


A workaround would be to separate your shell commands with new lines (\n) or write a bash that you run from your python script using the subprocess module.