Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - dwarfman78

Pages: [1]
1
SFML projects / Heartbeat - a dynamic DNS client / server for GANDI DNS
« on: February 28, 2015, 09:51:30 am »
Hi guys,

I recently used sfml-network for a custom project :

What for

As my ISP does not provide me a static public ip address and because i was not entirely satisfied with dyndns.org or no-ip solutions, i designed my own "dynamic dns client/server" using sfml-network for client/server communications / thread management and Gandi XmlRpc API for updating my domain.

How it works

(click to show/hide)

1. A client sends periodically an UDP packet to the server, telling which subdomain to update.
2. The server calls GANDI xmlRpc API to check if the ip has changed and updates the subdomain if needed.
3. I can now send a dns lookup to retrieve my public IP...
4. ... And enjoy accessing my private network, even if my public ip has changed over time.

Why SFML

it proved itself quite easy to cross compile for my router and to use it for that purpose, so i guess it wasn't a bad choice.

Security

In order to deny the update of a subdomain from unwanted clients, i've implemented a basic password based SHA-256 security.

Improvments

Currently, the hash, for a given subdomain, client and password stays the same as long as the client ip stays the same, i should add a seed of some sort to make it changes over time, making it harder to find.

The password is the same for all clients and thus for all subdomains. I should add some configuration to allow a password for each subdomain.

Unit tests...

Sources

https://github.com/dwarfman78/heartbeat-client
https://github.com/dwarfman78/heartbeat-server

2
Hi,

Following those instructions : http://www.sfml-dev.org/contribute.php#requesting-features

and given this topic : http://en.sfml-dev.org/forums/index.php?topic=17489

I'm writing this request to allow the user the possibility to choose within cmake which modules to configure for compilation.

This feature is usefull if one is wanting to use a submodule on a targeted system that is not allowing another module to be compiled on/for.

In my case, i am using sfml-network (and its dependency sfml-system) only, indeed the target system is a openwrt router which cannot run any X11/opengl/whatever is needed by others sfml modules.

thanks for the feedback.

3
General / Cross compiling SFML 2.2 for openwrt using CMake
« on: February 12, 2015, 08:23:14 am »
Hi guys,

i'd like to use SFML Network module with my router which runs under openwrt.

I have a very limited knowledge of cross compiling, anyone would care to help me to cross compile the network module for this operating system ? (maybe on irc)

So far i've an error with CMake : "mips-openwrt-linux-uclibc-gcc is not able to compile a simple test program".

thanks.

4
General / Problem linking to SFML (problem with sfml dependencies)
« on: May 27, 2014, 10:56:18 pm »
under windows :

I switched to mingw 4.8 so i had to recompile SFML, got the last revision from github repo in the meantime too (to check if the sf::Music pause problem is fixed).

Building sfml is fine but when i build my project (linking statically to SFML which was ok with the release version built with mingw 4.7), i have undefined references to openal, when i add extlib to linker directory and openal32 in lib dependencies these errors disapear but then i have linking problem with libsndfile then guess what ? With glew...

What's wrong ? never had to link to these shit before and by the way i never quite understood why i needn't link to openal but need to put that damn dll next to my exe.

So can anybody enlight me with the logic behind so i can build my project ?

Thanks.


5
Audio / Is there a problem with sf::Music::pause ?
« on: May 10, 2014, 09:01:47 pm »
Hi,
am i misreading something in the documentation or there is a problem here ? (found nothing in the forum with getStatus keyword nor in the github bugtracker).


#include <iostream>
#include <SFML/Audio.hpp>

int main()
{
    sf::Music music;
    if (!music.openFromFile("music.ogg"))
        return -1; // error

    music.play();

    music.pause();

    std::cout << music.getStatus();
    if(music.getStatus()!= sf::Music::Paused)
    {
        std::cout << "Problem ?" << std::endl;
    }
    else
    {
        std::cout << "OK" << std::endl;
    }

return 0;
// or loop ..
}

Output :

2Problem ?

Using mingw 4.7, linking statically to SFML.

Thank you for the help.

6
SFML projects / Tanks !
« on: April 05, 2014, 10:40:07 pm »
Intro
Let me introduce you to this game i made for masturbation purpose only as it took me  a ridiculous amount of very long time to do as a hobbyist game developer.
You play a green USofA tank. You must survive endless waves of red chinese communist tanks.

Rules
Each enemy destroyed will add 1 point to your score.
Each bullet you take from an enemy will drop your health by 1 point.
When you run out of health the game is over.

Tech
From a tech aspect, and because i did this for educational purpose, the game features :

- not fully mastered deWitter's game loop
- cheap xml / spritesheet based animation system using pugixml.
- as limited (feature wise) as sexy useless template based resource manager.
- quite decent 2D Opengl drawing , sound and system events handling based on S.F.M.L.
- pitifully bugged entity system. seems stable now.
- super simple particle system designed in a way that it completely wastes lambda expression usefulness.
- lousy memory management. should be ok now.
- some known and probably unknown bugs.
- some other stuff that doesn't deserve to be mentioned.

Website
http://dwarfman78.github.io/tanks/

Medias




binaries for windows (4 mb) : https://github.com/dwarfman78/tanks/releases/tag/v1.0.0

Sources available from my github repository : https://github.com/dwarfman78?tab=repositories

You'll need pugixml, Box2D and SFML 2.1 to build the engine and the game.

Controls

Move : Keyboard arrows or joystick, you can assign joystick buttons by editing config.xml
Shoot : Spacebar or designated button in config.xml
M : Mute music
Escape : show/hide menu

Have fun.

7
Java / Maven repository ?
« on: January 09, 2013, 10:57:01 pm »
Hi, thanks for your binding, i'm trying it out at the moment.

Do you plan on "mavenizing" your project ? As i use Maven to manage my dependencies, i find quite sad to have to add manually jsfml jar to the build path.

thx.

Pages: [1]
anything