scripts/custom/ships?? -1 reply

  • 1
  • 2

Please wait...

Beond_The_Grave

Beond The Grave

50 XP

25th June 2006

0 Uploads

176 Posts

0 Threads

#1 11 years ago

im trying to make a ship (hardpoint a model only) and i have all of my files and a scripts/custom/ships, and i borrowed the workerbee .py file, and changed the names, but when i used bcmp to add the ship to the game, i get the bsod. so i removed it and put it back in (because i dont know how to do the testmode stuff) and it keeps happening. so can someone help me. if i post it, can u see if i did anything wrong, or like a way that everyone else make them or sumthing like that?? :feedback:




JimmyB76 Filer

ST: Bridge Commander Central Forums Admin

30,798 XP

19th March 2003

0 Uploads

2,860 Posts

84 Threads

#2 11 years ago

what does the console report say? you'll need that (with testmode) to describe what you did wrong... also, if youre making a py for custom/ships folder, you dont need to use BCMP to plug it in again...




Beond_The_Grave

Beond The Grave

50 XP

25th June 2006

0 Uploads

176 Posts

0 Threads

#3 11 years ago

uhh i cant get that to work, but thats a diffrent topic for a later time. its been "disabled" now, but its still in the ship select menu, but i dont work. i figured it was cuse i didnt use bcmp... guess i was wrong :D




tiqhud

FileFront, BCfiles staff

50 XP

28th June 2006

0 Uploads

230 Posts

0 Threads

#4 11 years ago

what about the py-s in scripts\ships & then in scripts\ships\hardpoints , have you renamed and editted them,? their needed too (remember it's them little details, that'll kill ya)




Beond_The_Grave

Beond The Grave

50 XP

25th June 2006

0 Uploads

176 Posts

0 Threads

#5 11 years ago

there all the same nam i renamed the icon name to match (cuse it wasnt) and now i can get into bridge mode, but i cant play, and its the sovy. also i got a message window with several errors and it was python sumthin sumthin sumthin and it was continue script, or abort. so i made screenies. but than it happened to other ships for quantams and stuff. so i reinstalled bc.




Blackrook_32

"Fortune Favors the Bold. . ."

50 XP

4th September 2005

0 Uploads

136 Posts

0 Threads

#6 11 years ago
Beond_The_Grave;3476938there all the same nam i renamed the icon name to match (cuse it wasnt) and now i can get into bridge mode, but i cant play, and its the sovy. also i got a message window with several errors and it was python sumthin sumthin sumthin and it was continue script, or abort. so i made screenies. but than it happened to other ships for quantams and stuff. so i reinstalled bc.

Those scripts/Custom/Ship .py's can be very touchy. If your trying to alter them manually. Anything from spacing to not deleting the .TGL references. Can cause problems. Python is "Tab" friendly. Though it is possible to do, Python does not respond well to manual edits. It sounds like you added an extra space when you did your manual edit. In the future, it would be helpful if you place a copy of the script in question on this thread. Most of us can tell by a glance what your problem maybe.

Also here is a tip, if your having problems with a script like that- Python will not generate a .pyc for it. You can go to the scripts/Custom/Ships folder, and list your .py's in the order of last modified. The .py file without a .pyc will be the culprit.

-BR32




Beond_The_Grave

Beond The Grave

50 XP

25th June 2006

0 Uploads

176 Posts

0 Threads

#7 11 years ago

kk thx. ill look and post it and see. also is this a related problem or no. i got it when i tryed to play my ship after renaming the icon. it poped up so i hit the contuine command couple times before it kicked out and then it happend for my glaxy x. i think i reinstalled bc im not sure. (posted in order of apperence. tgpytonexceptiondebutconc2.pngtgpedcstep2lu0.pngtgpedcstep3fj6.png also heres my scritp. ####################################################################################### # Custom Ship Plugin # # Created by BC - Mod Packager # # Date: 1/4/2007 # ####################################################################################### # # import Foundation import App # # ####################################################################################### # # abbrev = 'Hermes' iconName = 'Hermes' longName = 'Hermes' shipFile = 'Hermes' menuGroup = 'Fed Ships' playerMenuGroup = 'Fed Ships' species = App.SPECIES_GALAXY # # ####################################################################################### # # # Mod Info. Use this as an opportunity to describe your work in brief. This may # # have use later on for updates and such. # # # credits = { 'modName': 'Hermes', 'author': '', 'version': '1.0', 'sources': [ 'http://' ], 'comments': '' } # # ####################################################################################### # # # This is the ShipDef that adds the Ship to the game... BC-Mod Packager has # # automatically generated the proper ShipDef Line for you. # # # Foundation.ShipDef.Hermes = Foundation.FedShipDef(abbrev, species, { 'name': longName, 'iconName': iconName, 'shipFile': shipFile }) # # ####################################################################################### # # # Uncomment these if you have TGL # # # # Foundation.ShipDef.Hermes.hasTGLName = 1 # Foundation.ShipDef.Hermes.hasTGLDesc = 1 # # # Otherwise, uncomment this and type something in: # # # Foundation.ShipDef.Hermes.desc = 'No Description Available' # # ####################################################################################### # # # These register the ship with the QuickBattle menus. Don't touch them!!! # # # if menuGroup: Foundation.ShipDef.Hermes.RegisterQBShipMenu(menuGroup) if playerMenuGroup: Foundation.ShipDef.Hermes.RegisterQBPlayerShipMenu(playerMenuGroup) if Foundation.shipList._keyList.has_key(longName): Foundation.ShipDef.__dict__[longName].friendlyDetails[2] = Foundation.shipList[longName].friendlyDetails[2] Foundation.ShipDef.__dict__[longName].enemyDetails[2] = Foundation.shipList[longName].enemyDetails[2] # # #######################################################################################

it has a .pyc in the custom folder. or did u mean hardpoints??




Beond_The_Grave

Beond The Grave

50 XP

25th June 2006

0 Uploads

176 Posts

0 Threads

#8 11 years ago

reinstalling *appears*to have fixed the problem, but if u know what it is or what causes it could u tell me anyway. im curious.




Blackrook_32

"Fortune Favors the Bold. . ."

50 XP

4th September 2005

0 Uploads

136 Posts

0 Threads

#9 11 years ago
Beond_The_Grave;3484785reinstalling *appears*to have fixed the problem, but if u know what it is or what causes it could u tell me anyway. im curious.

From looking at your Python Console report- it seems like the problem was with your Hermes.py hardpoint file. If you were just modifying the .py of the Hermes and didn't delete the old Hermes.pyc? That would have caused a problem. Though Python can generate a .pyc from a .py, it can get nasty sometimes when you don't delete the old .pyc before running BC. It will cause a conflict. It works for some, not deleting an old .pyc file. Some others do experience this problem. -BR32




Beond_The_Grave

Beond The Grave

50 XP

25th June 2006

0 Uploads

176 Posts

0 Threads

#10 11 years ago

wait so thats the console report? like with testmode and everything? i wish i hadnt reinstalled now! thx btw. ill delete both the hardpoints and use my backup .py. just like jimmy always said lol good to back stuff up ;)




  • 1
  • 2