Author Topic: Little questions and requests  (Read 1899 times)

0 Members and 1 Guest are viewing this topic.

Little questions and requests
Hello!
I have a few little questions and requests :)

First the Questions:
1. My story-tab in the Tech-Room is empty... Nothing at all there...
Is this (CVS)-Code-Related? Can I do something to get it back?

2. The debug-build doesn't work (Linux-CVS - Doesn't work since a few days/weeks).
It gives me this:
Code: [Select]
~/.fs2_open $ SDL_LINUX_JOYSTICK="'Saitek Cyborg 3D Rumble Force' 4 1 0" ./fs2_open_d
Future debug output directed to: /home/maniac/.fs2_open/data/fs2_open.log
WARNING: "Too many beam sections for weapon SGreen - max is 5" at weapon/weapons.cpp:2967
ASSERTION FAILED: "be->handle == handle" at bmpman/bmpman.cpp:2634
aborted

Now the requests  ;7 :
1. Ctrl+Shift+S shows ALL ships in the Tech-Room. Could you code an shortcut (maybe Ctrl+Alt+W) to show all weapons?
That would be great for custom-weapons...

2. Is there a way to play only ONE piece of music (e.g. one song in ogg-format)?
Not event-based?

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
Re: Little questions and requests
1. My story-tab in the Tech-Room is empty... Nothing at all there...
Is this (CVS)-Code-Related? Can I do something to get it back?
Pilot file related, though I'm not sure what has brought it on all of a sudden.  I'm missing things from my main pilot file, but I've been using it for a very long time so with all of the pilot file changes that's not strange at all for me.  The missing intel seems to be the biggest problem right now but I haven't bothered to check into it again.  The new pilot code will be available next month so fixing the current problem is just a waste of resources.  Hand editing the new pilot files with a hexeditor will be much easier since everything is sectioned off with a special header.  Fixing the missing entries will be pretty easy then and I would assume that a GUI editor will get made at some point since I'm making it a point to have the new files both easier to dissect and fully documented.

2. The debug-build doesn't work (Linux-CVS - Doesn't work since a few days/weeks).
You are mixing VPs or have a bad weapons.tbl somewhere.  It works fine for me so this should just be a content issue rather than a code issue.  The debug log will now list all cmdline options and all roots (directories and VPs) used by CFILE.  That should help narrow down the problem a bit if you want to have a look at that, or just post it so I can look.

Now the requests  ;7 :
1. Ctrl+Shift+S shows ALL ships in the Tech-Room. Could you code an shortcut (maybe Ctrl+Alt+W) to show all weapons?
That would be great for custom-weapons...
It's on my todo list but I haven't yet decided if there should actually be a new shortcut for the weapons and intel entries or not.  Ctrl+Shift+S was just meant to be "show all" and not really specific to the ships list.  I think I'll just go ahead and make the current shortcut work for everything and if anyone hates the idea then it can be changed later.

2. Is there a way to play only ONE piece of music (e.g. one song in ogg-format)?
Not event-based?
Xmms.  ;)   Just use -nomusic and the event music won't play, but you should still get all voices and things.

Of course you may have had something else in mind for that question and there is a sexp for playing a particular file which isn't tied to the event system.  Not sure exactly what that sexp is but there was/is probably and Mantis bug about it not working filed in the past couple of months.  This all assumes that are using your own mission or an edited one though.

 

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
Re: Little questions and requests
Propably just a stupid idea but could the option for species_defs.tbl (multiple species support) cause species.tbl (intel) to be nonfunctional?
Do not meddle in the affairs of coders for they are soggy and hard to light

 
Re: Little questions and requests
You are mixing VPs or have a bad weapons.tbl somewhere.  It works fine for me so this should just be a content issue rather than a code issue.  The debug log will now list all cmdline options and all roots (directories and VPs) used by CFILE.  That should help narrow down the problem a bit if you want to have a look at that, or just post it so I can look.

Oops... It really were my TBMs...
I just moved the tables directory and it started up fine...
But there were nothing in the fs2_open.log that said WHAT caused the crash...
Just some loading-image Messages and then nothing....

THX for the answers :)

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Re: Little questions and requests
Propably just a stupid idea but could the option for species_defs.tbl (multiple species support) cause species.tbl (intel) to be nonfunctional?

No.  They have nothing in common.

 

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
Re: Little questions and requests
Yea, that is how i believed it to be. Idea was that perhaps game would be parsing first the species.tbl for the intel and then as it founds species_defs.tbl it might override the intel part but as the file misses proper '#' entries it would leave the intel section overridden and empty.
Do not meddle in the affairs of coders for they are soggy and hard to light

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
Re: Little questions and requests
Oops... It really were my TBMs...
I just moved the tables directory and it started up fine...
But there were nothing in the fs2_open.log that said WHAT caused the crash...
Just some loading-image Messages and then nothing....
Hmm, it might be a good idea to list TBMs as they are parsed then.  I hadn't thought of that before but it would make debugging much easier.  I'll add some debug lines for that around all of the places that they are used.  It's much easier to tell when the main tables are getting parsed than when TBMs are.

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Re: Little questions and requests
I thought they already were, check the debug spew when fs2_open?

That may just be -shp.tbm tho. The little system I have set up should really be made into a function, and allocate the memory dynamically...
-C

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
Re: Little questions and requests
I thought they already were, check the debug spew when fs2_open?
Only for ships (I'm pretty sure anyway) and only after it's been parsed.  I just added a "TBM => Starting to parse '<tbm name>'..." in there just before it goes off to parse.  It's easy to pick out of the log and is simple to change later if you would prefer something different.

And I do agree that really needs to be a function, but I'll leave that to you. :)


Oh and the Ctrl+Shift+S change will hit CVS in a few minutes.  It will work for all three tabs (ships, weapons, intel) and only has to be pressed once as it affects all of them at the same time.