Author Topic: [Release] Cockpit Mod 2.0!  (Read 26989 times)

0 Members and 1 Guest are viewing this topic.

Offline The E

  • He's Ebeneezer Goode
  • Global Moderator
  • 213
  • Nothing personal, just tech support.
    • Skype
    • Steam
    • Twitter
Re: [Release] Cockpit Mod 2.0!
True, if that script isn't in some way vital to the mod, that could work.
**** every cause that ends in murder and children crying. ― Iain Banks
Join the fun at the HLP IRC channel. Get the latest spam and gossip as long as it's fresh!

 
Re: [Release] Cockpit Mod 2.0!
Well the good news is that removing the axmsg mod has removed the error.

The bad news is that now I get this:

Starting parse of 'Cockpits-shp.tbm' ...
Cockpits-shp.tbm(line 7:Error: Required token = [#End], [$Subsystem:], [$Name], or [$Template], found [$Cockpit Display:].
ERROR: Cockpits-shp.tbm(line 7:
Error: Required token = [#End], [$Subsystem:], [$Name], or [$Template], found [$Cockpit Display:].

I looked in the wiki and found that fsopen 3.6.16 supports this command. I assume that WCSaga is built on an older version.

All I need is to get render to texture working ans I can do the rest.

Any ideas, or am I out of luck?

 

Offline Admiral Nelson

  • Resurrecter of Campaigns
  • 211
  • The GTA expects that every man will do his duty.
Re: [Release] Cockpit Mod 2.0!
From the quote below the fork was before 3.6.12 final, so you are probably out of luck:
Have at thee!  :D

https://github.com/niffiwan/wcsaga

(let me know if anyone wants commit access)

FYI: this seems to indicate the fork was at 3.6.12 RC1
Code: [Select]
gcc -DPACKAGE_NAME=\"fs2_open\" -DPACKAGE_TARNAME=\"fs2_open\" -DPACKAGE_VERSION=\"3.6.12\ RC1\" -DPACKAGE_STRING=\"fs2_open\ 3.6.12\ RC1\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DNO_CD_CHECK=1 -DNDEBUG=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSCP_UNIX=1 -DNO_DIRECT3D=1 -DUSE_OPENAL=1 -I.    -m64 -march=athlon64 -ansi -pedantic -DLUA_USE_LINUX -g -Os -Wall -funroll-loops -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT     -fsigned-char -Wno-unknown-pragmas  -MT ltable.o -MD -MP -MF .deps/ltable.Tpo -c -o ltable.o ltable.c

And it doesn't compile in Linux yet (not that I've spent much time on this so far)
If a man consults whether he is to fight, when he has the power in his own hands, it is certain that his opinion is against fighting.

 
Re: [Release] Cockpit Mod 2.0!
Thanks for the info.

Maybe I can try overlaying the hud gauges onto a model with blank screens to simulate the effect.

 

Offline Admiral Nelson

  • Resurrecter of Campaigns
  • 211
  • The GTA expects that every man will do his duty.
Re: [Release] Cockpit Mod 2.0!
Have you seen the WCS Open Alpha?  That at least should (mostly) work with current builds, including the cockpit mod and whatnot.
If a man consults whether he is to fight, when he has the power in his own hands, it is certain that his opinion is against fighting.

 
Re: [Release] Cockpit Mod 2.0!
I will give it a look thanks!

 
Re: [Release] Cockpit Mod 2.0!
I'm afraid WCSaga open is too buggy for me to use. Thanks for the recommendation though!

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Re: [Release] Cockpit Mod 2.0!
I'm afraid WCSaga open is too buggy for me to use. Thanks for the recommendation though!
Then fix the bugs; the only reason nobody did it already is because there was zero interest in the project.
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.

 
Re: [Release] Cockpit Mod 2.0!
Hello!  Long-time lurker here.  These cockpits look AMAZING.
I installed this cockpit mod (v2) half-way through FS2Blue in the Blue Planet Complete mod, and didn't detect any problems.
When I got to Age of Aquarius and piloted a GTF Aurora for the first time, I saw that there is no visible cockpit.  There may be other affected ships that I haven't flown yet.
I have already located bp-shp.tbm, and added "Show Ship" to the flags for the Aurora, but alas, it did not work.
Is this something I can fix by modifying a table, or is there something more in-depth that a beginner like me could have trouble with?

Note:  This is the first time I've opened a .vp file, and the first time I've modified a .tbm file (yay!).

Please forgive me if I shouldn't have resurrected this thread.

  
Re: [Release] Cockpit Mod 2.0!
OMG, I figured it out!

Okay.
I extracted all of the table files into bpcomplete/data/tables.
Opened each file looking for ship references.
If I found a file with a bunch of ship references, I copied the template from an existing ship, and just replaced its name.
I can be more specific for anyone that needs it, but I'm only halfway through fixing it.

 

Offline Det. Bullock

  • 28
  • Madman in a box.
Re: [Release] Cockpit Mod 2.0!
When I try to use the cockpit (alone or in tow with another mod) I get a message at launch that states that the mod is giving 14 warning/errors, is it normal or there is some issue I'm not aware of?
"I pity the poor shades confined to the euclidean prison that is sanity." - Grant Morrison
"People assume  that time is a strict progression of cause to effect,  but *actually*  from a non-linear, non-subjective viewpoint - it's more  like a big ball  of wibbly wobbly... time-y wimey... stuff." - The Doctor

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Re: [Release] Cockpit Mod 2.0!
Depends on what the warnings are; run a debug build and find out what's wrong.
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.

 

Offline Det. Bullock

  • 28
  • Madman in a box.
Re: [Release] Cockpit Mod 2.0!
Depends on what the warnings are; run a debug build and find out what's wrong.
Ah, yes (it's years since the last time I did it), this is what comes out when using the cockpit mod with just the mediavps:

Warning: Duplicate sound name "4" found!
File: gamesnd.cpp
Line: 798

ntdll.dll! NtWaitForSingleObject + 21 bytes
kernel32.dll! WaitForSingleObjectEx + 67 bytes
kernel32.dll! WaitForSingleObject + 18 bytes
fs2_open_3_8_0_AVX-FASTDBG.exe! <no symbol>
fs2_open_3_8_0_AVX-FASTDBG.exe! <no symbol>
fs2_open_3_8_0_AVX-FASTDBG.exe! <no symbol>
fs2_open_3_8_0_AVX-FASTDBG.exe! <no symbol>
fs2_open_3_8_0_AVX-FASTDBG.exe! <no symbol>
fs2_open_3_8_0_AVX-FASTDBG.exe! <no symbol>
fs2_open_3_8_0_AVX-FASTDBG.exe! <no symbol>
fs2_open_3_8_0_AVX-FASTDBG.exe! <no symbol>
fs2_open_3_8_0_AVX-FASTDBG.exe! <no symbol>
fs2_open_3_8_0_AVX-FASTDBG.exe! <no symbol>
fs2_open_3_8_0_AVX-FASTDBG.exe! <no symbol>
fs2_open_3_8_0_AVX-FASTDBG.exe! <no symbol>
fs2_open_3_8_0_AVX-FASTDBG.exe! <no symbol>
fs2_open_3_8_0_AVX-FASTDBG.exe! <no symbol>
fs2_open_3_8_0_AVX-FASTDBG.exe! <no symbol>
fs2_open_3_8_0_AVX-FASTDBG.exe! <no symbol>
fs2_open_3_8_0_AVX-FASTDBG.exe! <no symbol>
kernel32.dll! BaseThreadInitThunk + 18 bytes
ntdll.dll! RtlInitializeExceptionChain + 99 bytes
ntdll.dll! RtlInitializeExceptionChain + 54 bytes
fs2_open_3_8_0_AVX-FASTDBG.exe! <no symbol>


PS: also while using it with FSport I noticed that a lot of the HUD elements were duplicated, the radar was both 3D and 2D at the same time and so were the throttle gauge and the weapon energy gauge toghether with the mission accomplished messages, and when using it "alone" (only with the mediavps that is) the subsystem brackets in the target display are outside the target box.
« Last Edit: November 19, 2017, 08:00:10 pm by Det. Bullock »
"I pity the poor shades confined to the euclidean prison that is sanity." - Grant Morrison
"People assume  that time is a strict progression of cause to effect,  but *actually*  from a non-linear, non-subjective viewpoint - it's more  like a big ball  of wibbly wobbly... time-y wimey... stuff." - The Doctor