DualScreen Mod

Everything about mods can be found here.

Moderator: Morax

Re: DualScreen Mod

Postby jj_erklärt » 22 Aug 2015, 13:05

Did not work-no idea why
before game loadet it crash

http://www.filedropper.com/game_4
paaaaaaau!
User avatar
jj_erklärt
Crusader
 
Posts: 26
Joined: 08 Jul 2014, 01:17
Has liked: 2 times
Been liked: 1 time
FAF User Name: pls_play_fair

Re: DualScreen Mod

Postby CodingSquirrel » 22 Aug 2015, 16:30

You have the mod installed to mods/dualscreen-master, it had to be mods/dualscreen
User avatar
CodingSquirrel
Avatar-of-War
 
Posts: 180
Joined: 19 Jan 2015, 19:01
Has liked: 9 times
Been liked: 63 times
FAF User Name: CodingSquirrel

Re: DualScreen Mod

Postby Domino » 26 Aug 2015, 14:26

Hey,

This is a schook of import.lua that i use. (obvioulsy in an SCD)

http://pastebin.com/gjhiZpYD

what it does is track and save imports and hooks,

so you can hook ANY game function from a mods folder, this includes the lobby, main menu, mods.lua etc,
it also stores all textures and allows you to replace any game texture from a mods folder.

just recreate the path to the file or texture in your mods folder.

The only problem is, that once a file is hooked from a mods folder, it is still hooked even if the mod is disabled. ( you have to disable the mod and restart FA from desktop)
there is no performance hit at all as all files are hooked/replaced from when the game is launched from the desktop.

it does other things also, like for instance, you no longewr have to use long folder paths from mod folders, you can just use the mounted path like

/mods/blah/lua/myfiles/modjunk.lua to /lua/myfiles/modjunk.lua and the path will be found.

this also means you can hook mod lua files also, so you like a mod but there is a bug.. you could make a new mod to hook the mod function and fix it,
obviously both mods would have to be used to apply your fix.. there are many possibilities with this tecnique, but a few draw backs also.

use any of this code you desire if you want it, if you learn from it.. GREAT..

Domino
Domino
Priest
 
Posts: 315
Joined: 14 Mar 2012, 21:07
Has liked: 3 times
Been liked: 75 times

Re: DualScreen Mod

Postby General_kozi » 29 Jan 2017, 08:55

Is it possible for this to work with supreme scoreboard and eco manager? When i use this with SSB or EM, the score board or EM UI don't appear. With SSC, I imagine its because they're both modifying score.lua. No idea what'd be causing the issue with EM.
General_kozi
 
Posts: 1
Joined: 04 Jan 2017, 10:30
Has liked: 2 times
Been liked: 0 time
FAF User Name: NR_General_kozi

Re: DualScreen Mod

Postby zaproid » 03 Aug 2017, 01:11

Hey,

awesome mod! Does exactly what I need!

However: running this mod with UI Party v13 makes my game crash before I even load in.

After that I get a "Fatal Error" box stating this:

Unhandled exception:

state->m_rootState == m_state

Program : C:\ProgramData\FAForever\bin\ForgedAlliance.exe
Cmd line arguments : /mean 1355.64 /deviation 120.467 /country EE /init init_faf.lua /numgames 83 /log C:\ProgramData\FAForever\logs\game.log /nobugreport /savereplay gpgnet://localhost/6580091/zaproid.SCFAreplay /gpgnet 127.0.0.1:50418

Callstack:
Unknown symbol (address 0x008d462c)

Last 100 lines of log...

warning: [C]: in function `doscript'
warning: [C]: in function `pcall'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(48): in function `import'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(37): in function `import'
warning: ...\faforever\gamedata\lua.nx2\lua\ui\game\gamemain.lua(35): in main chunk
warning: [C]: in function `doscript'
warning: [C]: in function `pcall'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(48): in function `import'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(37): Error importing '/mods/notify/modules/notify.lua'
warning: stack traceback:
warning: [C]: in function `error'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(52): in function `import'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(37): in function `import'
warning: ...orged alliance\mods\ui-party\modules\unitwatcher.lua(13): in main chunk
warning: [C]: in function `doscript'
warning: [C]: in function `pcall'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(48): in function `import'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(37): in function `import'
warning: ...r forged alliance\mods\ui-party\modules\ui-party.lua(2): in main chunk
warning: [C]: in function `doscript'
warning: [C]: in function `pcall'
warning: ...
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(37): in function `import'
warning: ...data\faforever\gamedata\lua.nx2\lua\ui\game\chat.lua(1506): in main chunk
warning: [C]: in function `doscript'
warning: [C]: in function `pcall'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(48): in function `import'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(37): in function `import'
warning: ...\faforever\gamedata\lua.nx2\lua\ui\game\gamemain.lua(35): in main chunk
warning: [C]: in function `doscript'
warning: [C]: in function `pcall'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(48): in function `import'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(37): Error importing '/mods/ui-party/modules/unitwatcher.lua'
warning: stack traceback:
warning: [C]: in function `error'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(52): in function `import'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(37): in function `import'
warning: ...r forged alliance\mods\ui-party\modules\ui-party.lua(2): in main chunk
warning: [C]: in function `doscript'
warning: [C]: in function `pcall'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(48): in function `import'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(37): in function `import'
warning: ...ed alliance\gamedata\lua.scd\lua\ui\game\borders.lua(138): in main chunk
warning: [C]: in function `doscript'
warning: [C]: in function `pcall'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(48): in function `import'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(37): in function `import'
warning: ...data\faforever\gamedata\lua.nx2\lua\ui\game\chat.lua(1506): in main chunk
warning: [C]: in function `doscript'
warning: [C]: in function `pcall'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(48): in function `import'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(37): in function `import'
warning: ...\faforever\gamedata\lua.nx2\lua\ui\game\gamemain.lua(35): in main chunk
warning: [C]: in function `doscript'
warning: [C]: in function `pcall'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(48): in function `import'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(37): Error importing '/mods/ui-party/modules/ui-party.lua'
warning: stack traceback:
warning: [C]: in function `error'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(52): in function `import'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(37): in function `import'
warning: ...ed alliance\gamedata\lua.scd\lua\ui\game\borders.lua(138): in main chunk
warning: [C]: in function `doscript'
warning: [C]: in function `pcall'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(48): in function `import'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(37): in function `import'
warning: ...data\faforever\gamedata\lua.nx2\lua\ui\game\chat.lua(1506): in main chunk
warning: [C]: in function `doscript'
warning: [C]: in function `pcall'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(48): in function `import'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(37): in function `import'
warning: ...\faforever\gamedata\lua.nx2\lua\ui\game\gamemain.lua(35): in main chunk
warning: [C]: in function `doscript'
warning: [C]: in function `pcall'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(48): in function `import'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(37): Error importing '/lua/ui/game/borders.lua'
warning: stack traceback:
warning: [C]: in function `error'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(52): in function `import'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(37): in function `import'
warning: ...data\faforever\gamedata\lua.nx2\lua\ui\game\chat.lua(1506): in main chunk
warning: [C]: in function `doscript'
warning: [C]: in function `pcall'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(48): in function `import'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(37): in function `import'
warning: ...\faforever\gamedata\lua.nx2\lua\ui\game\gamemain.lua(35): in main chunk
warning: [C]: in function `doscript'
warning: [C]: in function `pcall'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(48): in function `import'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(37): Error importing '/lua/ui/game/chat.lua'
warning: stack traceback:
warning: [C]: in function `error'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(52): in function `import'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(37): in function `import'
warning: ...\faforever\gamedata\lua.nx2\lua\ui\game\gamemain.lua(35): in main chunk
warning: [C]: in function `doscript'
warning: [C]: in function `pcall'
warning: ...alliance\gamedata\mohodata.scd\lua\system\import.lua(48): in function `import'
warning: Error importing /lua/ui/game/gamemain.lua:
Error importing '/lua/ui/game/gamemain.lua'
stack traceback:
[C]: in function `error'
...alliance\gamedata\mohodata.scd\lua\system\import.lua(52): in function `import'
warning: Error running '/lua/ui/game/gamemain.lua:OnBeat': attempt to index a nil value
stack traceback:
zaproid
Crusader
 
Posts: 10
Joined: 14 Jan 2017, 16:43
Has liked: 4 times
Been liked: 2 times
FAF User Name: zaproid

Re: DualScreen Mod

Postby md1892 » 04 Mar 2018, 21:44

Is it possible to run this mod so that the stretched window is borderless?
md1892
Crusader
 
Posts: 13
Joined: 25 Nov 2014, 23:56
Has liked: 12 times
Been liked: 1 time
FAF User Name: md1892

Re: DualScreen Mod

Postby betaplayer » 27 Feb 2019, 13:44

Would this mod work on an ultra widescreen monitor? (2560x1080)

So one can have the experience of having the map on the right-hand side of the screen, and the regular 'game' on the left hand of the screen?
betaplayer
 
Posts: 7
Joined: 02 Mar 2014, 18:13
Has liked: 0 time
Been liked: 0 time
FAF User Name: betaplayer

Previous

Return to Mods & Tools

Who is online

Users browsing this forum: No registered users and 1 guest