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.


Messages - player931402

Pages: 1 2 [3] 4
31
SFML projects / New Project, need programmers and graphics
« on: March 29, 2012, 05:11:47 pm »
Technical Specifications:  MVC++2010 - SFML 2.0

Introduction to the game:

Game with a top view ( 2D ) it will be like  an mmo.
just logged in, players is in the main room.  The main room contains merchants (clothing and weapons) and those that will make access to the rooms PvP / PvE.


PvE = A group generated randomly (or not) will be carried in one of several instances. The goal is to kill all the mobs and the final boss (which will have rewards). But be careful! Friendly fire is on!

PvP = Usual way, will be better defined with the trend of development of the game.


Currently we are only a programmer and a graphic. We are willing to accept anyone with a minimum of skill in the field who wants to participate in.


Enjoy!

32
System / Thread issues
« on: March 20, 2012, 11:49:13 am »
Quote from: "Laurent"
And what's your problem?



soz:

Code: [Select]
1>------ Inizio compilazione: Progetto: Schizzo, Configurazione: Release Win32 ------
1>  main.cpp
1>D:\sfml2\include\SFML/System/Thread.inl(39): error C2198: 'void (__cdecl *)(void *)': argomenti insufficienti per una chiamata
1>          D:\sfml2\include\SFML/System/Thread.inl(39): durante la compilazione della classe modello, funzione membro 'void sf::priv::ThreadFunctor<T>::Run(void)'
1>          with
1>          [
1>              T=void (__cdecl *)(void *)
1>          ]
1>          D:\sfml2\include\SFML/System/Thread.inl(70): vedere il riferimento all'istanza del modello di classe 'sf::priv::ThreadFunctor<T>' in corso di compilazione
1>          with
1>          [
1>              T=void (__cdecl *)(void *)
1>          ]
1>          main.cpp(22): vedere il riferimento all'istanza del modello di funzione 'sf::Thread::Thread<void(__cdecl *)(void *)>(F)' in corso di compilazione
1>          with
1>          [
1>              F=void (__cdecl *)(void *)
1>          ]
========== Compilazione: 0 completate, 1 non riuscite, 0 aggiornate, 0 ignorate ==========

33
System / Thread issues
« on: March 19, 2012, 10:39:30 pm »
Hi guys!

I need to have in "par" my game with the Listen socket on my client.

Now, i'll try to do somwhat like this but doesn't work!

Someone can help me?

Code: [Select]
void ThreadFun(void *UserData)
{
Network->work();
}

int main()
{
Game* game= new Game();

sf::Thread Threads(&ThreadFun);

Game->work();

    return EXIT_SUCCESS;
}



Info -> the thread starts much after commencing the game
( Before i need to send/recv singles datas in another methods. )
SFML 2.0 , vc++2010

34
Network / just a query!
« on: February 08, 2012, 05:46:20 pm »
ok.. my problem is ->

i've only this code in a php page:

Code: [Select]
<?php
mysql_connect
&#40;'localhost','xxx','xxxxxx'&#41;;
mysql_select_db&#40;'xxxxx'&#41;;

$nick$_POST['N'&#93;;
$pass$_POST['P'&#93;;

$ris mysql_query&#40;"SELECT ID FROM User WHERE `NAME`='$nick' AND `PASS`='$pass'"&#41;;

if &#40;$ris!=NULL&#41;
&#123;
$stringa=  mysql_query&#40;"UPDATE Utente SET `ONLINE`='1' WHERE `ID`='$ris'"&#41;;
return $ris;
&
#125;
return -1;
?>




i need to "see" in my application the return values ( after conctacting the page ), how can i do?

soz for my misunderstandig

35
Network / just a query!
« on: February 06, 2012, 05:38:12 pm »
Quote from: "Laurent"
Sorry, but I don't understand what you want to do.


soz!

i need to take a list of X names from my database with a SELECT sql input, how i can save in my program the X names? ( the number of the list can changed any time )

36
Network / just a query!
« on: February 06, 2012, 04:17:43 pm »
Oh i have another question..

what if i need to take some datas with this query and save the resultates in my app?

Code: [Select]
while ($riga = mysql_fetch_assoc($ris)) {
echo "<li>".$riga['user']." ".$riga['score']."</li>";



i dont know how much of name there is in the table, how can i do?

37
SFML projects / Falling Rocks! (demo inside)
« on: February 02, 2012, 04:20:24 pm »
Great game! gj!

Quote from: "aBallofWin"
Really fun game, you should develop it for the iphone or ipad :P



yeah you should export your project on android and ipod/iphone..!
at  cost<1€ you become richest!

38
SFML projects / ColdStars (2.5D time based space strategy)
« on: February 02, 2012, 04:02:16 pm »
is sfml only extern lib used ?

39
Network / just a query!
« on: January 30, 2012, 10:38:27 pm »
laurent, thanks, you have been very helpful as always!
I now need is to understand how to send data from mysql into my app XDD

thanks again!

ps: after a year it seems to me that I use SFML time to get my contribute with a *little* donation! :3 Bravo! bye!

40
Network / just a query!
« on: January 30, 2012, 09:41:34 pm »
Quote from: "Hiura"
Use sf::Http (SFML 2). You can find an example in the documentation here.



yah but how from this ->


Code: [Select]
sf::Http http;

 http.SetHost("http://www.bufera.altervista.org");

 sf::Http::Request request("log.php");

 sf::Http::Response response = http.SendRequest(request);

 sf::Http::Response::Status status = response.GetStatus();
 if (status == sf::Http::Response::Ok)
 {
     std::cout << response.GetBody() << std::endl;
 }
 else
 {
     std::cout << "Error " << status << std::endl;
 }




i can send query on my log.php page to mysql database like this ->

Code: [Select]
<?php
$nick
$_GET['Nick'&#93;;
$pass$_GET['PASS'&#93;;
$email$_GET['Email'&#93;;
$ris mysql_query&#40;"INSERT INTO Utente &#40;Nick_id, Pass_id, email_id&#41; VALUES&#40;'$nick', '$pass', '$email'&#41;"&#41;;

?>




???

41
Network / just a query!
« on: January 30, 2012, 07:44:50 pm »
Quote from: "Laurent"
Quote
I thought something like my program send the data to my php page and the page send the query

Yes, this is usually how it is done. There's really nothing complicated. What is blocking you?


how my program can contact the php page, give the data and run the query automatically :(

42
Network / just a query!
« on: January 30, 2012, 07:36:07 pm »
i need, for my highscores online, send to my database some data.

Then, i really dont know how i can do this.. I thought something like my program send the data to my php page and the page send the query ( i know how to send a query in php ).. its possible? starch could someone help me? perhaps with an example? the documentation did not help me! thank you!

43
Graphics / sf::Sprite -> Move and SetPosition
« on: January 18, 2012, 04:20:08 pm »
Quote from: "texus"
SetPosition will change the position to the passed value, so SetPosition(20, 20) will put the sprite on position (20, 20).
Move will do exactly what the name suggests, move the sprite. If before the position was set to e.g. (60, 60) and you would call Move(20, 20) then the new position will be (80, 80).

So usually you will be using SetPosition and to change the position later when e.g. moving an object on the screen you can use Move.
So Move(x, y) is just to make this line more simple: SetPosition( GetPosition().x + x, GetPosition().y + y)



thanks, I thought that there were differences much more complicated

44
Graphics / sf::Sprite -> Move and SetPosition
« on: January 18, 2012, 03:58:39 pm »
what are the differences and when to use the first than the second ( or the second then first ) in my game loop?

45
Graphics / [sfml 2] Take the text of the user.
« on: November 22, 2011, 09:43:35 pm »
Ty very much ! :)

Pages: 1 2 [3] 4