Latest posts of: Vincent
Project Darkstar Community Forums  
Jul 02, 09, 06:45 pm *

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1] 2
1  Project Darkstar Client Technology / C APIs / Re: Problem creating a connection to HelloUser through C API - Solved on: Sep 23, 08, 09:09 am

Thanks a lot, you were right. Now there is a reaction from the server.
2  Project Darkstar Client Technology / C APIs / Re: Problem creating a connection to HelloUser through C API - Solved on: Sep 23, 08, 06:54 am
Hello Kalannar,

I used the code C++ you put in the thread : "any good tutorial for the C API?", but the Client C doesn't work.

I am using the HelloWorld server tutorial, I don't have any problem with the java client but when I connect to the C client there no reaction from the server.

I just used your Client code:

Code:
        WSADATA winsockdata;
WSAStartup(MAKEWORD(2,2),&winsockdata);
 
Client* client = new Client();

if (client->createServerConnection("localhost", 1139)) {
cout<<"Connexion succed."<<endl;
} else {
cout<<"Connexion faild."<<endl;
}

if (client->logon("guest-14", "guest")) {
cout<<"Login succed."<<endl;
} else {
cout<<"Login failed."<<endl;
}


Output:

Connexion succed.
Login failed.


Even if the server is not launched, it displays that.

Thanks for your help,

Vincent

3  Project Darkstar Client Technology / C APIs / Re: Problem to compile: WinSock.lib needed? on: Sep 22, 08, 04:17 pm
Thank you guys,

Actually it was not  WinSock.lib but WS2_32.Lib I had to add.
4  Project Darkstar Client Technology / C APIs / Problem to compile: WinSock.lib needed? on: Sep 05, 08, 04:46 pm
Hi,

I  am programing with VisualC++ under Windows vista, I get a problem to link with all winsock functions.

I can't find winsock.lib and with the file winsock.dll I get an error message: file no valid.

Does someone has a solution for me?

Vincent

5  Project Darkstar Server Technology / Core Darkstar Technology / From 0.9.2 to 0.9.3 on: Oct 10, 07, 07:30 pm
Hello,

I have a problem when I try to pass from the verion 0.9.2 to the 0.9.3:

I have this message:

SEVERE: Handler.messageReceived protocol version:1, expected 2

So I suppose it's because the server use the version 0.9.3 and the client use the version 0.9.2. or maybe the opposite ?

But I changed all the files in my sgs directory and my client use the new libs.

Do someone has an idea, to resolve my troubles?

Thank you,

Vincent
6  Project Darkstar Server Technology / Core Darkstar Technology / Data base increase no stop on: Aug 28, 07, 10:30 pm
Hello,

My data base increase no stop, I am not sure to understand what are the files log.00000000001 and __db.001. Are there all for the data base or for some the log?

I have more than 1 Gb when the game run for few minutes, so I commented all the features in the game and the data base still increases.

So if someone has any idea?
7  Project Darkstar Server Technology / Server components / Re: Script integration in Darkstar Server on: Jul 31, 07, 01:04 am


Are you sure it's a really a problem when you use the interprtor just in a transaction?

For exemple:
Code:

class MyClass implements Task {
...
public void run() {

Interpretor interpretor = new Interpretor();
int dataModifiedByScript;
interpretor.setInt("myData", dataModifiedByScript);
interpretor.processScript("myScript.py");
dataModifiedByScript = interpretor.get("myData");

}
}

In this way the interpretor is niot serializabled.

Thank you,
8  Project Darkstar Server Technology / Core Darkstar Technology / Delete all data at the end of a Game on: Jul 31, 07, 12:56 am
Hello,

In a game there are some data just necessary during the life of a game. At the end I want to be sure all these data are deleted.

I wanted to know if there is a solution to be sure all the used data during the game are deleted at the end of a game.

Thank you,

Vincent
9  Project Darkstar Server Technology / Server components / Re: Script integration in Darkstar Server on: Jun 05, 07, 06:22 pm

 Thank you very much Jeff, one more time you resolve my problem Cheesy

Vincent  Wink
10  Project Darkstar Server Technology / Server components / Re: Script integration in Darkstar Server on: Jun 05, 07, 04:47 pm
In SGS, your "app" doesn't have a main() function.  Instead, you register an appListener which has initialize() and run() routines.

I know that, I think I have some trouble to communicate my problem, the code I wrote it's just the simple example I can execute, and there are no problem with this one.

In Darkstar of course I don't write the main method but just that :

Code:
PythonInterpreter interp =
    new PythonInterpreter();
        interp.execfile("myScript.py");


But when I execute sgs I have the following error message :

java.lang.NoClassDefFoundError: org/python/util/
PythonInterpreter
11  Project Darkstar Server Technology / Server components / Re: Script integration in Darkstar Server on: Jun 04, 07, 09:40 pm

The simple test I tried is :

Code:
import org.python.util.PythonInterpreter;
public class JTest {
    public static void main(String []args)
throws PyException
    {
PythonInterpreter interp =
    new PythonInterpreter();
        interp.execfile("myScript.py");
       
    }
}

And the class it doesn't find when I launch the Darkstar Server is org.python.util.PythonInterpreter.
Error message in Darlstar server :
java.lang.NoClassDefFoundError: org/python/util/
PythonInterpreter


But when I execute this simple program there are no problem :

javac JTest.java
java JTest


That's why I think it's not a problem of classpath.
12  Project Darkstar Server Technology / Server components / Script integration in Darkstar Server on: Jun 04, 07, 07:21 pm

Hi,

I want to add to the Darkstar Sever a script interpreter. But I get the error message : "java.lang.NoClassDefFoundError".

I don't understand because when I executed a simple example (in "C:\Temp\sgs") not in the Darkstar server, there are no problems.  So it's not a problem with my classpath. The problem is just with sgs ??

Someone can explain me that Huh

Thank you,


Vincent
13  Project Darkstar Server Technology / Core Darkstar Technology / Re: Non Durable Task Queue on: May 30, 07, 12:20 am

What you want is an efficient "sparse matrix" representation.

Thank you very much, I resolve the problem with this solution Grin So each tick I compress and decompress the map.
14  Project Darkstar Server Technology / Core Darkstar Technology / Transaction Timeout Exception 0.9.2 on: May 29, 07, 08:17 am
I believe the fix was to upgrade from 0.9 to 0.9.2

I changed for the version 9.2 and now I have a Transaction Timeout Exception when I create the 65000 objects in a room. Now the 65000 objects don't contain list anymore.

All these objects need to be in the same room and don't need to be ManagedObject. I don't understand how can I have so many objects in the same room.

Is it possible to change the maximum permitted duration when the exception is thrown? Or it is because this transaction fails because the data are too bigs?

15  Project Darkstar Server Technology / Core Darkstar Technology / Re: Non Durable Task Queue on: May 25, 07, 12:29 am

I tried in the Room of the tutorial SwordWorld to add a array of 65000 elements of a Data that contain a list. Room implements Task, in the function run I iterate on all the players and the array.

I get a Out of Memory Exception when a player look...

So maybe it's because Darkstar can't support so many data, and I have to change my data structure...
What do you think???

Vincent


Code:
public class Data implements Serializable {
    Set<String> dataList;
    public Data () {
        dataList = new HashSet();
    }
}
In the SwordWorld
Code:
private Data[] data;
public SwordWorldRoom(String name, String description) {
        super(name, description);
        data = new Data[256*256];
        for (int i = 0; i < data.length; i++) {
            data[i] = new Data();
        }
       
    }
Pages: [1] 2
Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!