Okay I'm spend hour of my time and done simple standalone fix for cursor/icons/etc bug with FOSS drivers. Script in PHP, so it's should be installed ("apt-get install php5-cli") How to: Download and unpack CURSOR-ICONS-FIX-LINUX.zip Copy start.sh and fix.php to directory where PA executable located Run start.sh Script will be executed 10 seconds after PA. Enjoy. PS: Script grab Coherent View IDs from JSON output and then init websocket connection to each of them. In result Coherent reload them and everything work like a charm.
This debugger binary isn't required at all because everything you need is done in JavaScript and communicate with Coherent Host though websockets. Actually even this HTML not required for workaround, you just need make proper websocket connection and view will be already reloaded.
Did all that, Didn't work. Will try SXX's fix when i get chance and report back although i won't be playing PA until release now or at least till there's been a few balance issues with the bots but i'm always willing to play around with stuff like this
Inspired by SXX's workaround I created a small PA mod that does more or less the same. If added to the start screen, the issue is fixed automatically every time PA is started. When the start screen is loaded, it retrieves all Coherent UI views and opens a WebSocket connection to them. This causes Coherent to properly reload all affected bitmaps. Code: var DEBUG_HOST = "127.0.0.1"; var DEBUG_PORT = 9999 $(function() { $.getJSON( "http://" + DEBUG_HOST + ":" + DEBUG_PORT + "/json", function(data) { $.each(data, function(index, view) { var url = view["webSocketDebuggerUrl"]; var socket = new WebSocket(url); socket.onopen = function() { socket.close(); } }); }); });
I feel even dumber, Where's that code have to be put? Or i could just use SXX's fix tbh, seems they both work, Ill try both
Actually you can put it anywhere in UI javascript files. Or use mine script and wait before somebody build proper mod.
I put that snippet into media/ui/alpha/start/uifix.js and added a reference to the 'start' scene in /media/ui/mods/ui_mod_list.js (according to the readme.txt in that folder). Anyone who wants to create a proper mod for this, feel free to use my snippet.
SXX's fix seems to have no effect for me? I'm on ubuntu 12.10, with nvidia GeForce GT 640M. when I run the start.sh I temporarily get a black window up playing the pa lobby music in the background and with a smudge instead of a cursor on top. this window disappears quickly. launching pa after that just gives me the regular no-cursor experience?
Can you try to use javascript mod or just put javascript code into start.js? Also this fix need to be applied each time after you run game.
I'm afraid I don't know how to to that. the javascript mod seems to rely on a mod manager, but googling "planetary annihilation mod manager" I'm lead here: https://forums.uberent.com/threads/rel-pa-mod-manager-v2-0-0.50726/, and that seems to only have a .exe version? where is start.js?
There Linux version of manager, but you can also install mode manually. media/ui/alpha/start/start.js You can just copy javascript code on start of file and it's should work.
Hi! First of all thanks for your home made patch it is very usefull. I use FOSS driver for my AMD card, and after a fresh PA install I had a black screen with a broken messed up cursor, and basically game over, I had to use xkill to get out. Then I downloaded your cursor fix, now the black screen issue is gone everything in the game is nice and okay, EXCEPT the cursor wich is still messed up. :O I'm using build 58197.
Cursor issue do not related to black screens. Black screen mean that Coherent start failed and it's sometimes occur with no visible reason. Also can you please say what GPU you have and where you get drivers from?
I do not understand then because I tried to launch the game many times and I always got the black screen. But I already played multiple matches with your patch with no black screen issues. I'm using HD5770 with the standard Xorg opensource driver.
Might be some coincidence. If black screen appear again can you try to run PA though command line and then post output here? There will be some Xorg errors. What Mesa version you use? Also I just wonder do you have same "broken sun" glitch? And yeah can you spend some time on little performance testing? Just wonder how PA perform on other cards with R600.
I launched the game many times is a row but it loads correctly after your cursor fix, however the cursor itself is still broken. I do not know what to say... I'm using Mesa 9.2.1 The sun has some strange behaviour its not a big deal but after a while it starts to look like a planet which has a shadowed side (it has a darker orange color) and the opposite is brighter yellow. I guess it is not normal too. I did not have time to run any larger matches, so I do not know its whole performance yet. At the beginning it runs nice at least.