mirror of
https://gitlab.cs.fau.de/ik15ydit/latexandmore.git
synced 2024-11-24 20:49:33 +01:00
removed supcom and spring
This commit is contained in:
parent
f19df920bf
commit
0e3c102f99
@ -1,200 +0,0 @@
|
|||||||
--all Buildings
|
|
||||||
local ref_low
|
|
||||||
--medium (construction)
|
|
||||||
local ref_medium
|
|
||||||
|
|
||||||
--header
|
|
||||||
function widget:GetInfo()
|
|
||||||
return {
|
|
||||||
name = "Selection Priority",
|
|
||||||
desc = "Sorts Units by Priority (atackunit>builder/commander>buildings)",
|
|
||||||
author = "Sheppy",
|
|
||||||
date = "2015",
|
|
||||||
license = "GPL",
|
|
||||||
layer = 0,
|
|
||||||
enabled = true
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
function widget:CommandNotify(cmdID, cmdParams, cmdOptions)
|
|
||||||
local selected = Spring.GetSelectedUnits()
|
|
||||||
local low = {}
|
|
||||||
local medium = {}
|
|
||||||
local high = {}
|
|
||||||
local deselect = 0
|
|
||||||
--do nothing if CTRL is pressed
|
|
||||||
local a,b,c,d = Spring.GetModKeyState() --alt ctrl ? shift , discard all but alt
|
|
||||||
--Spring.Echo(Spring.GetModKeyState())
|
|
||||||
|
|
||||||
if b then return end
|
|
||||||
--iterate Selection
|
|
||||||
for i=1,200 do
|
|
||||||
if selected[i] == nil then break end
|
|
||||||
--get name to match
|
|
||||||
defID = UnitDefs[Spring.GetUnitDefID(selected[i])].name
|
|
||||||
--Check what we got in out selection
|
|
||||||
if inTable(ref_low,defID) then
|
|
||||||
table.insert(low,selected[i])
|
|
||||||
elseif inTable(ref_medium,defID) then
|
|
||||||
table.insert(medium,selected[i])
|
|
||||||
if deselect == 0 then deselect = 1 end
|
|
||||||
else
|
|
||||||
table.insert(high,selected[i])
|
|
||||||
if deselect < 2 then deselect = 2 end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
--discard selections
|
|
||||||
if deselect == 1 then
|
|
||||||
Spring.SelectUnitArray(medium,false)
|
|
||||||
Spring.SelectUnitArray(high,true)
|
|
||||||
elseif deselect == 2 then
|
|
||||||
Spring.SelectUnitArray(high,false)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
function inTable(tbl,item)
|
|
||||||
for key, value in pairs(tbl) do
|
|
||||||
if value == item then return true end
|
|
||||||
end
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
|
|
||||||
--for debugging purpose only
|
|
||||||
function debug()
|
|
||||||
for key, value in pairs(medium) do
|
|
||||||
Spring.Echo("val_med: " .. value)
|
|
||||||
end
|
|
||||||
for key, value in pairs(low) do
|
|
||||||
Spring.Echo("val_low: " .. value)
|
|
||||||
end
|
|
||||||
for key, value in pairs(low) do
|
|
||||||
Spring.Echo("val_high: " .. value)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
--loading unit-names to match against
|
|
||||||
function widget:Initialize()
|
|
||||||
ref_medium = {
|
|
||||||
--arm
|
|
||||||
"armcom",
|
|
||||||
"armaca",
|
|
||||||
"armca",
|
|
||||||
"armacv",
|
|
||||||
"armcv",
|
|
||||||
"armack",
|
|
||||||
"armck",
|
|
||||||
"armcs",
|
|
||||||
"armacs",
|
|
||||||
"armacsub",
|
|
||||||
"armch",
|
|
||||||
"corch",
|
|
||||||
--core
|
|
||||||
"coracs",
|
|
||||||
"corcom",
|
|
||||||
"coraca",
|
|
||||||
"coracv",
|
|
||||||
"corack",
|
|
||||||
"corca",
|
|
||||||
"corck",
|
|
||||||
"corcv",
|
|
||||||
"corcs",
|
|
||||||
"coracsub"
|
|
||||||
}
|
|
||||||
ref_low = {
|
|
||||||
--arm
|
|
||||||
"armaap",
|
|
||||||
"armalab",
|
|
||||||
"armap",
|
|
||||||
"armadvsol",
|
|
||||||
"armavp",
|
|
||||||
"armarad",
|
|
||||||
"armalab",
|
|
||||||
"armbrtha",
|
|
||||||
"armckfus",
|
|
||||||
"armclaw",
|
|
||||||
"armestor",
|
|
||||||
"armfmkr",
|
|
||||||
"armfus",
|
|
||||||
"armlab",
|
|
||||||
"armjam",
|
|
||||||
"armmakr",
|
|
||||||
"armmex",
|
|
||||||
"armmoho",
|
|
||||||
"armnanotc",
|
|
||||||
"armrad",
|
|
||||||
"armsolar",
|
|
||||||
"armtide",
|
|
||||||
"armvp",
|
|
||||||
"armwin",
|
|
||||||
"aafus",
|
|
||||||
"amgeo",
|
|
||||||
"armuwfus",
|
|
||||||
"armeyes",
|
|
||||||
"armason",
|
|
||||||
"armasy",
|
|
||||||
"armch",
|
|
||||||
"armhp",
|
|
||||||
"armmmkr",
|
|
||||||
"armsy",
|
|
||||||
"armgeo",
|
|
||||||
"armuwadves",
|
|
||||||
"armshltx",
|
|
||||||
"armuwmex",
|
|
||||||
"armuwmme",
|
|
||||||
"armuwmmm",
|
|
||||||
"cmgeo",
|
|
||||||
"asubpen",
|
|
||||||
--core
|
|
||||||
"coraap",
|
|
||||||
"coralab",
|
|
||||||
"corap",
|
|
||||||
"coradvsol",
|
|
||||||
"coravp",
|
|
||||||
"corarad",
|
|
||||||
"coralab",
|
|
||||||
"corbrtha",
|
|
||||||
"corckfus",
|
|
||||||
"corclaw",
|
|
||||||
"corestor",
|
|
||||||
"corfmkr",
|
|
||||||
"corfus",
|
|
||||||
"corlab",
|
|
||||||
"corjam",
|
|
||||||
"cormakr",
|
|
||||||
"cormex",
|
|
||||||
"cormoho",
|
|
||||||
"cornanotc",
|
|
||||||
"corrad",
|
|
||||||
"corsolar",
|
|
||||||
"cortide",
|
|
||||||
"corvp",
|
|
||||||
"corwin",
|
|
||||||
"aafus",
|
|
||||||
"amgeo",
|
|
||||||
"coruwfus",
|
|
||||||
"coreyes",
|
|
||||||
"corason",
|
|
||||||
"corasy",
|
|
||||||
"corch",
|
|
||||||
"corhp",
|
|
||||||
"cormmkr",
|
|
||||||
"corsy",
|
|
||||||
"corgeo",
|
|
||||||
"coruwadves",
|
|
||||||
"corshltx",
|
|
||||||
"coruwmex",
|
|
||||||
"coruwmme",
|
|
||||||
"coruwmmm",
|
|
||||||
"cmgeo",
|
|
||||||
"asubpen",
|
|
||||||
"armhp",
|
|
||||||
"armllt",
|
|
||||||
"armhlt",
|
|
||||||
"armjamt",
|
|
||||||
"corhp",
|
|
||||||
"corllt",
|
|
||||||
"corhlt",
|
|
||||||
"corjamt"
|
|
||||||
}
|
|
||||||
Spring.Echo("Namelist init done.")
|
|
||||||
end
|
|
@ -1,5 +0,0 @@
|
|||||||
# Description
|
|
||||||
* commands are only given to highest selected group, that being [mobile (attack-)units>Commander/Builder>Buildings]
|
|
||||||
* holding 'ALT' pressed during command will suppress this behaviour
|
|
||||||
* you need to created a new "Widgets" folder if one does not already exist in your "~/spring/LuaUI" and put the lua file there
|
|
||||||
* if a unit doesn't behave as it's supposed to, it is most likely because i forgot it in my list of unitnames feel free to report it or fix it yourself
|
|
@ -1,123 +0,0 @@
|
|||||||
Never execute any commands you do not understand!
|
|
||||||
|
|
||||||
*** WINDOWS ***
|
|
||||||
** If you already have an SCFA Folder/Installation **
|
|
||||||
1. Unpack the SupComFA-patchonly.zip somewhere (replace any older ones)
|
|
||||||
2. Change FAForever/fa_path.lua to $PFAD/SCFA (like M:/FA/SCFA, forward slashes are necessary)
|
|
||||||
3. execute forgedalliance.exe in FAForever/bin (NOT the one in the SCFA directory)
|
|
||||||
** Otherwise **
|
|
||||||
1. Unpack the SupComFA-full.zip somewhere (YOU DO NOT NEED THE patch-only.zip!!!)
|
|
||||||
2. execute forgedalliance.exe in FAForever/bin (NOT the one in the SCFA directory)
|
|
||||||
3. DON'T touch the fa_path.lua
|
|
||||||
|
|
||||||
*** LINUX TRY FIRST ***
|
|
||||||
- unpack
|
|
||||||
$ winetricks d3dx9
|
|
||||||
- cd into $SUPCOM/bin
|
|
||||||
- replace the resolution with the resolution of your screen and execute
|
|
||||||
$ wine explorer /desktop=FA,1920x1080 ForgedAlliance.exe
|
|
||||||
|
|
||||||
*** LINUX EXTENDED ***
|
|
||||||
- you may need wine32 bit and winetricks:
|
|
||||||
$ sudo dpkg --add-architecture i386 && apt-get update && apt-get install wine32 winetricks
|
|
||||||
- you may also need vcrun2010, dotnet40, corefonts, d3dx9, d3dx9_36
|
|
||||||
$ export WINE=wine32
|
|
||||||
$ winetricks vcrun2010 dotnet40 corefonts d3dx9 d3dx9_36
|
|
||||||
- put the X3DAudio1_2.dll in related into wine/system32 if it's not there already
|
|
||||||
$ cp $PATH/related/3DAudio1_2.dll ~/.wine/drive_c/windows/system32/
|
|
||||||
- set your vram size in winetricks (use 512 if in doubt)
|
|
||||||
$ winetricks videomemorysize=$YOURVRAM
|
|
||||||
- cd into bin dir and go wine ForgedAlliance.exe
|
|
||||||
$ cd $PATH/SupComFA-full/bin/
|
|
||||||
$ wine ForgedAlliance.exe
|
|
||||||
|
|
||||||
*** Common Errors on Windows ***
|
|
||||||
This game needs .NET-Framework 4.0 or higher and directX 9.c (legacy-directX on win10).
|
|
||||||
Most PCs already have both, some older might not. You can get everything from microsoft-website.
|
|
||||||
|
|
||||||
*** Common Errors on Linux ***
|
|
||||||
- AudioDLL blablabla is missing -> wine for WHATEVER reasonsometimes creates
|
|
||||||
an empty version of that dll in .wine/dosdevices/ if you try to start the game
|
|
||||||
without that dll, you have to replace it with the correct dll and start again
|
|
||||||
- videomemorysize might default to 256, that will cause the game hang
|
|
||||||
during intro sequence or lead to blackscreen as soon as the game started
|
|
||||||
see Linux-Extended Section on how to fix that
|
|
||||||
- cant compile carthographic.fx/cant load it -> you forgot to install d3dx9_36
|
|
||||||
- wine asking for some XML microsoft parser -> just follow wine instructions
|
|
||||||
- wine saying that .wine is a 64 bit installation -> delete .wine, move it or
|
|
||||||
select different director (I suppose there is an option for that)
|
|
||||||
|
|
||||||
*** Windowmanger Problems ***
|
|
||||||
- general displaying problems -> try to emulate a virtual desktop, this will fix it for many windowmangers:
|
|
||||||
$ winecfg
|
|
||||||
navigate to graphics, x Emulate virtual desktop and capture mouse, apply'nn close
|
|
||||||
--> in herbstluftwm windowed mode has higher FPS, why is beyond me
|
|
||||||
--> use Mod-F in herbstluft wm for fullscreen
|
|
||||||
- you can start SupCom without a windowmanger:
|
|
||||||
$ get a tty without a windowmanger (usually Ctrl-Alt-{2-5})
|
|
||||||
if you just want to go with:
|
|
||||||
$ startx wine32 /path/to/ForgedAlliance.exe
|
|
||||||
you will have to change the path in fa_path.lua from ../SCFA/ to a full path
|
|
||||||
if you don't want to do this or if you are playing from an usb stick you can
|
|
||||||
start a terminal, cd into directory within that terminal and execute wine there:
|
|
||||||
$ startx xterm
|
|
||||||
$ cd /path/to/bin
|
|
||||||
$ wine32 ForgedAlliance.exe
|
|
||||||
i recommend you set the resolution ingame,
|
|
||||||
|
|
||||||
*** Performance under Linux ***
|
|
||||||
If you know what you are doing you can try this to imrpove CPU-wise performance:
|
|
||||||
$ taskset -cp 0 (pgrep ForgedAlliance); sudo renice -2 -p (pgrep ForgedAlliance)
|
|
||||||
|
|
||||||
*** Dual Screens under Linux? ***
|
|
||||||
Depends on driver/card. If SupCom doesn't show you a second adapter, short and long answer is no.
|
|
||||||
|
|
||||||
*** What is this? ***
|
|
||||||
It's a modified FAForever Client at version 0.12.0,
|
|
||||||
this version is know to run stable with all legacy version. The
|
|
||||||
gamefiles in the SCFA directory are an unpatched original CD version
|
|
||||||
however any official version (Steam aka 1.X/3599) and the Community
|
|
||||||
beta-Patch 3605 should work. Gamefiles that have been patched since
|
|
||||||
then are loaded from the files in FAForever/gamedata. The version of
|
|
||||||
those files is a slight variation of 3667 (0-12-pre2+1174 to be exact).
|
|
||||||
|
|
||||||
*** Can I use the gamefiles to play online? ***
|
|
||||||
Yes, FAForever does not check CD keys (it could not even if it wanted to),
|
|
||||||
so you can use the SCFA "installation" within the SCFA directory. You have
|
|
||||||
to download the Official Client version from "faforever.com". It will promt
|
|
||||||
you for the location of the SCFA directory as soon as you try to play a game.
|
|
||||||
|
|
||||||
*** Can I play online with linux? ***
|
|
||||||
Yes, but it might be a little tricky to get the FAForever-Client to run on linux.
|
|
||||||
An easy solution could be to use the inofficial java client:
|
|
||||||
http://faforever.github.io/downlords-faf-client/
|
|
||||||
Check the main Linux Thread on FAF Forums for usefull information:
|
|
||||||
http://forums.faforever.com/viewtopic.php?f=2&t=4507&hilit=linux
|
|
||||||
|
|
||||||
*** Can I play online without the client? ***
|
|
||||||
Short answer: No, use the client.
|
|
||||||
Long answer: Yes, SupCom is p2p, so you can enter any IPv4 address in Multiplayer-Lan
|
|
||||||
and connect to it if the ports are forwarded correctly. (TCP 6112 + UDP 6112 and 9103)
|
|
||||||
Such a game has to be hosted like a normal Multiplayer-Lan game. You cannot however
|
|
||||||
join a game that is hosted via the FAFServer, that both the official and the
|
|
||||||
java client use. Even if you manage to join the game, you will desynchronize.
|
|
||||||
Also Steam has it's own multiplayer, but it suffers from unpatched bugs, horrible
|
|
||||||
state of gamebalance and nonexistant tech-support.
|
|
||||||
|
|
||||||
*** Handbook/Gameplay-Help ***
|
|
||||||
There is a pdf-Version of the original Handbook in the "related" directory, though the
|
|
||||||
Information you find there probably only of limited use (as they are very basic), try
|
|
||||||
http://wiki.faforever.com/index.php?title=Main_Page
|
|
||||||
for more Information.
|
|
||||||
If you like video tutorials, here is a good collection (if in doubt start with 5):
|
|
||||||
https://www.youtube.com/watch?v=0QhM7oC-t7U&list=PLWe0mYs3ObwL36zemynMh5G4b-3s5vol0
|
|
||||||
|
|
||||||
*** Changes from default FAF-3667.0-12-pre2+1174 ***
|
|
||||||
- deleted various (for lanmode) obsolete files
|
|
||||||
- changed maps/mods origin from normal path to "../"
|
|
||||||
- changed lua.nxt2/lua/ui/dialogs/score.lua
|
|
||||||
- EscapeHandler.SafeQuit() to ExitGame() [so it will quit to main menu instead of Desktop]
|
|
||||||
- changed tooltip in the same file in line 426 and 460
|
|
||||||
- changed lua_path to point ../ instead of default gamefiles path
|
|
||||||
- removed report of teamkills in ui/dialogs/teamkill
|
|
||||||
- modified default keymap for legacy GAZ-UI
|
|
@ -1,17 +0,0 @@
|
|||||||
echo Checking winetricks...
|
|
||||||
winetricks d3dx9 && echo done
|
|
||||||
mkdir -p ~/.sc/sshfs/ && echo Created sshfs mp in ~/.sc/sshfs/
|
|
||||||
echo Mounting /var/tmp as sshfs...
|
|
||||||
sshfs -o cache_timeout=-1,cache_stat_timeout=-1,cache_dir_timeout=-1,cache_link_timeout=-1 faui00t:/var/tmp/ik15ydit/ ~/.sc/sshfs/ && echo done
|
|
||||||
echo Changing working dir
|
|
||||||
cd ~/.sc/sshfs/SupComFA-full/bin/ && echo done
|
|
||||||
echo Starting wine...
|
|
||||||
echo $PWD
|
|
||||||
wine ForgedAlliance.exe && echo terminated
|
|
||||||
echo Cleaning up...
|
|
||||||
cd
|
|
||||||
xrandr --output DVI-I-2 --mode 1920x1080 && echo restored resolution
|
|
||||||
pkill -s 15 plugplay.exe
|
|
||||||
pkill -s 15 services.exe
|
|
||||||
echo Unmounting...
|
|
||||||
fusermount -u ~/.sc/sshfs/ && echo unmounting succesfull
|
|
Loading…
Reference in New Issue
Block a user