Author Topic: Program to port ships from QB to MP  (Read 9988 times)

Offline Defiant

  • Posts: 398
  • Cookies: 1105
    • BC: Kobayashi Maru
Re: Program to port ships from QB to MP - HELP!!!
« Reply #20 on: May 17, 2008, 05:13:23 AM »
censored

Offline LJ

  • Retired Staff
  • Posts: 1661
  • Cookies: 1139
Re: Program to port ships from QB to MP - HELP!!!
« Reply #21 on: May 17, 2008, 06:02:34 AM »
Defiant is spot on.  It is best to make sure it works by hand first, it's how I started before I wrote my MP ship adder programs. :-)

In addition, if it is really working fine until your PC (not BC) restarts, it might be something silly like an open file handle from your program?  I know IDLE used to do strange things regarding keeping files open which I only found out because of a little empirical experimentation with the "quit" button.

Offline cnotsch

  • Posts: 85
  • Cookies: 3
Re: Program to port ships from QB to MP - HELP!!!
« Reply #22 on: May 17, 2008, 06:40:25 AM »
I already added several ships manually and it worked...

so i saw you mentioned that the ship's icon species are listed in groups 100-199 for one race 200-299 for anoter.
is that just to keep track or has that a special reason? If so that would mean i'd have to change the ranges a bit because i definetly have more than 100 fed-ships!
so any idea there?

do i have to sort the first list in speciestoship.py in a special order that came out a bit weird?


Offline cnotsch

  • Posts: 85
  • Cookies: 3
Re: Program to port ships from QB to MP - HELP!!!
« Reply #23 on: May 17, 2008, 06:56:06 AM »
nice idea there LJ but resarting anyting(BC or PC) didn't cange anything not even going onto another PC. The only thing working is to backup the scripts-folders ships,multiplayer & icons meaning resetting the game to the state bevore i ran my progam. The silly thing is it WORKED once!!!

Offline cnotsch

  • Posts: 85
  • Cookies: 3
Re: Program to port ships from QB to MP - HELP!!!
« Reply #24 on: May 17, 2008, 07:35:00 AM »
do i got that right? :

1.) The order in both lists of speciestoship has to be the same
2.) The first list starts at 1 and has to be incrementing
3.) All flyable ships have to be before MAX_FLYABLESHIPS
4.) All not flyable ships have to be after that
5.) Othewise the order is not important unless you want to sort the list you choose the ships from
6.) The icon number or species as most call it (the second in kSpeciesTuple) is not important but: (or do i have to keep them sorted by race as mentioned before?)
7.) The species in ShipIcons.py has to be the same
8.) The species in The shipfile has to be the same too
9.) The order in ShipIcons.py in not important

did i forget anything?

may the species be below 100 or above 1000?

Offline Defiant

  • Posts: 398
  • Cookies: 1105
    • BC: Kobayashi Maru
Re: Program to port ships from QB to MP - HELP!!!
« Reply #25 on: May 17, 2008, 08:11:45 AM »
censored

Offline cnotsch

  • Posts: 85
  • Cookies: 3
Re: Program to port ships from QB to MP - HELP!!!
« Reply #26 on: May 17, 2008, 08:20:06 AM »
i may not have placed my two questions well...
1.) may the species be below 100 or above 1000?
2.) do i have to sort the species by race as mentioned above

if you say all true wich one of those two is? they cant be both true unless it is possible to create new groups below 100 and above 1000  :?: :!: :?:

Offline Defiant

  • Posts: 398
  • Cookies: 1105
    • BC: Kobayashi Maru
Re: Program to port ships from QB to MP - HELP!!!
« Reply #27 on: May 17, 2008, 08:36:11 AM »
censored

Offline LJ

  • Retired Staff
  • Posts: 1661
  • Cookies: 1139
Re: Program to port ships from QB to MP - HELP!!!
« Reply #28 on: May 17, 2008, 08:57:24 AM »
If you would like I can *try* to find the source to mine?
(note: it was one of my first ever programs and the code will be pretty rubbish!)

Offline cnotsch

  • Posts: 85
  • Cookies: 3
Re: Program to port ships from QB to MP - HELP!!!
« Reply #29 on: May 17, 2008, 09:06:42 AM »
would be very nice.
I had the idea to create a mod wich includes the best version of every ship-class on bc-files but making the mp-scripts by hand would be to difficult so i try to solve that first.

btw, whad language did you use?

Quote
(note: it was one of my first ever programs and the code will be pretty rubbish!)
do you think i'm better in writing clear ^^

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Program to port ships from QB to MP - HELP!!!
« Reply #30 on: May 17, 2008, 09:40:24 AM »
Check your options.cfg, what does it say for Window Width and Window Height?
I still can't read peoples minds, nor can I read peoples computers, even worse, I can't combine the two to read what is going wrong with your BC install...

"It was filed under 'B' for blackmail." - Morse, Inspector Morse - The dead of Jericho.

Offline tiqhud

  • BCFiles File Poster
  • Posts: 1763
  • Cookies: 1067
  • San Francisco Shipyards (HPer) file manuiplater
Re: Program to port ships from QB to MP - HELP!!!
« Reply #31 on: May 17, 2008, 10:25:45 AM »
If I read correctly [which I doubt] a program that can take any ship, and put it into MP, isn't that like cheating, cause you'd have a verrrry strong , to your opponents semi weak-one.
TiqHud
you sir, are unable to strike, the port or starboard parts of hull , of a bovine storage facility.
Canon , what people argue exists, that doesn't really  exist.
It is all the little details, that cause headaches.
"Never judge wealth with Money"
'Intelligence has Nothing to do with Politics'
it is Late, Do you know where your Towel is?

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Program to port ships from QB to MP - HELP!!!
« Reply #32 on: May 17, 2008, 10:27:28 AM »
Everyone needs the same scripts, so the other player also has it.
I still can't read peoples minds, nor can I read peoples computers, even worse, I can't combine the two to read what is going wrong with your BC install...

"It was filed under 'B' for blackmail." - Morse, Inspector Morse - The dead of Jericho.

Offline tiqhud

  • BCFiles File Poster
  • Posts: 1763
  • Cookies: 1067
  • San Francisco Shipyards (HPer) file manuiplater
Re: Program to port ships from QB to MP - HELP!!!
« Reply #33 on: May 17, 2008, 11:01:55 AM »
OH, since Ive only , plsyed MP for a very short time, I knew that each player need same scripts, this just alluded me that what he was up to, trying to make it easier to get the same scripts, Got it.
TiqHud
you sir, are unable to strike, the port or starboard parts of hull , of a bovine storage facility.
Canon , what people argue exists, that doesn't really  exist.
It is all the little details, that cause headaches.
"Never judge wealth with Money"
'Intelligence has Nothing to do with Politics'
it is Late, Do you know where your Towel is?

Offline cnotsch

  • Posts: 85
  • Cookies: 3
Re: Program to port ships from QB to MP - HELP!!!
« Reply #34 on: May 17, 2008, 12:22:45 PM »
Check your options.cfg, what does it say for Window Width and Window Height?

i suppose you are referring to my suspicious errors... if so:
i've tried the following resolutions
windowed: 1024x768;
fullscreen: 1024x768,1280x1024,1600x1200;

but like i said the game works perfectly until the game normally loads the first ship (MP after choosing the first ship, QB during loading)

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Program to port ships from QB to MP - HELP!!!
« Reply #35 on: May 17, 2008, 12:42:25 PM »
But what does the options.cfg say afterwards?
Don't load the game, just what does it say?
I still can't read peoples minds, nor can I read peoples computers, even worse, I can't combine the two to read what is going wrong with your BC install...

"It was filed under 'B' for blackmail." - Morse, Inspector Morse - The dead of Jericho.

Offline cnotsch

  • Posts: 85
  • Cookies: 3
Re: Program to port ships from QB to MP - HELP!!!
« Reply #36 on: May 17, 2008, 03:36:07 PM »
same as bevore

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Program to port ships from QB to MP - HELP!!!
« Reply #37 on: May 17, 2008, 06:14:07 PM »
Same as before, as in, no change in BC still crashing, or options.cfg the same (in what way then)?
I still can't read peoples minds, nor can I read peoples computers, even worse, I can't combine the two to read what is going wrong with your BC install...

"It was filed under 'B' for blackmail." - Morse, Inspector Morse - The dead of Jericho.

Offline cnotsch

  • Posts: 85
  • Cookies: 3
Re: Program to port ships from QB to MP - HELP!!!
« Reply #38 on: May 18, 2008, 02:03:24 AM »
sorry, i meant the resolution in options.cfg stays as i set it

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Program to port ships from QB to MP - HELP!!!
« Reply #39 on: May 18, 2008, 08:21:39 AM »
Another source of random crashes are missing projectile files.

Have you tried each ship on it's own in QB, firing all projectile based weapons?
I still can't read peoples minds, nor can I read peoples computers, even worse, I can't combine the two to read what is going wrong with your BC install...

"It was filed under 'B' for blackmail." - Morse, Inspector Morse - The dead of Jericho.