Hi, I've received a mail from a Spanish dude that has ported Battle for Wesnoth to GP2X. He can't write English, so I'm translating a message from him. He is looking for some advice, I guess yann can be specially helpful.
------------------------------------------------------------------------- To be fair I'm a newbie programmer (I've written code for six months only), I've had a look at Wesnoth code and it's a bit "dense" for my programming skills. Anyway, I've managed to modify events.cpp to get the stick moving the cursor (using SDL_WarpMouse() ) and some buttons simulating clicks (creating SDL_MOUSEBUTTONDOWN events). Unfortunately, it loads very slowly (I guess this is normal, due to loading from the SD), texts blink and in several moments the mouse clicks doesn't work (for example, at the beginning of the tutorial, while Konrad talks). In th middle of the game, the cursor lefts garbage. In addition, I've no idea about how to simulate keyboard keypresses. By the moment my problems are: 1. I'm sure GP2X is able to make Battle for Wesnoth work ok, but just now it's really slow. I've done some tests and GP2X performance is really bad with > 16 bits surfaces. Which kind of surfaces does use Wesnoth? 2. I've tried to simulate the mouse with a joystick in BfW in my computer. And in that ccase the cursor doesn't left garbage, so my method is working correctly. I guess the garbage is caused by low refresh times, may be BFW method to redraw the screen isn't the best one for a device like GP2X. May be the blinking text problem is also related to screen refresh. Is there any place where I can modify the game fps? --------------------------------------------------------------------------------- That's all, I guess he will also welcome any other advice about how to get Wesnoth working in a device like that. Best regards -- Isaac Clerencia Warp Networks
