Please don't laugh at me, but... I've already laughed/cried

This is the location for all mods to collaborate. Anyone making or planning their own mod should post help requests, screen shots and news here.

Moderators: Omega, tillias, Mod Contributor

Post Reply
richholl
Explorer
Explorer
Posts: 8
Joined: Mon Dec 10, 2007 4:56 pm

Please don't laugh at me, but... I've already laughed/cried

Post by richholl »

I have NO modding experience (yes, I am probably the ONLY gamer alive who does not...) so I was attempting something small and fun and, well, it will not work. I have PR1.2, PU and the CSV editor. I was attempting the "Creating a weapon upgrade" as it looked quite simple. I followed the instruction laid out, even using "MyLaser" for the nomenclature, as best I could. Obviously something did not go right. If someone could pity me and help it would be cool. If there is a more definitive guide (I couldn't seem to find one) point me to it and I will be grateful.

Here are the tweaks I attempted using the How-To:

Weapons.XML - inserted a copy of the Laser descriptor below the Laser and tweaked the numbers a bit <BoltName="MyLaser"...>

Master_Part_List.csv - same song second verse using "laser", tweaked the description and price "File"name to "my_laser" (following the How-To)

units/units.csv - This one was a little squirrely to me as the How-To referrenced something I could not find on the list, but this is what I did in the list copying right below the "laser" and "laser_beam" entries -

Key
my_laser__upgrades
my_laser_beam__upgrades

Directory
.factions/upgrades/my_laser
.factions/upgrades/my_laser_beam

Name
"my_laser"
"my_laser_beam"

All other column entries copied w/o change.

I did try removing the underscores from the Name column on the Units.csv and some other stuff like that to no avail.

Thanks for any time and help thrown at me.
Last edited by richholl on Tue Dec 11, 2007 6:08 pm, edited 1 time in total.
richholl
Explorer
Explorer
Posts: 8
Joined: Mon Dec 10, 2007 4:56 pm

Post by richholl »

I am also stay-at-home-dadding it this year with a baby and four year old, so I will be popping on and off. So if someone asks for more info and I don't respond then know I am not ignoring your offer for help.

Thanks. I am enjoying this great throwback game, though. Good times!
loki1950
The Shepherd
Posts: 5841
Joined: Fri May 13, 2005 8:37 pm
Location: Ottawa
Contact:

Post by loki1950 »

Welcome richholl hope you made backups :wink: a look at stdout and stderr should give us an indication of what went wrong.More than likely someplace in the python functions that govern upgrades.

Enjoy the Choice :)
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 19.2/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
richholl
Explorer
Explorer
Posts: 8
Joined: Mon Dec 10, 2007 4:56 pm

Post by richholl »

Well, awesome, I've already gotten lost with that reply. I probably should lay of the MOD and dring more egg nog, instead. :lol: stdout & stderr - it's Greek to me.

My wife and I teach as well as work with kids outside of school and I was trying to get a little flavor of tweaking beyond console cheat codes so I wouldn't always glaze over listening to some of the kids. Maybe I should leave brain surgery to the brain surgeons...
chuck_starchaser
Elite
Elite
Posts: 8014
Joined: Fri Sep 05, 2003 4:03 am
Location: Montreal
Contact:

Post by chuck_starchaser »

stderr and stdout are files in your /bin folder to which the engine logs things as it runs. Each time you start Vegastrike (PR uses vegastrike.exe as its engine), VS clears these files and then continuously logs events and errors to them, to help debugging when something goes wrong. They are text files, and what loki was suggesting was that you copy their contents and post them here so he can have a look at them, to be able to help you.
richholl
Explorer
Explorer
Posts: 8
Joined: Mon Dec 10, 2007 4:56 pm

Post by richholl »

I appreciate the hand-holding; I know what it's like to try and explain something you can do in your sleep to someone who cannot even speak the language, literally. That was an excellent, concise explanation - you a trainer/teacher?

I checked the bin folder and found only .dll files. These were the only files containing a *std* string I could find on the drive.
std.py
std.pyo
std.pyc
richholl
Explorer
Explorer
Posts: 8
Joined: Mon Dec 10, 2007 4:56 pm

Post by richholl »

WHOA, I stumbled into something. I though that since I was running the editor and other things as administrator (stinking Vista) that maybe I should run the game the same... Viola, there in the humble little mining colony we start on was the "My Laser".

My remaining query would be: Is there a super-Noob manual somewhere I have not found for MOD simpletons to begin a quest to learn in their spare time?

Thanks.
loki1950
The Shepherd
Posts: 5841
Joined: Fri May 13, 2005 8:37 pm
Location: Ottawa
Contact:

Post by loki1950 »

you found the simplest guides we have ATM in the wiki :wink: which meams they are not simple enough.One thing i would recommend is a better text editor than Notepad or Wordpad try http://notepad-plus.sourceforge.net/uk/site.htm it's got syntax highlighting so when you open one of the files you can see something of it's structure immediately.

Enjoy the Choice :)
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 19.2/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
Dilloh
Elite Hunter
Elite Hunter
Posts: 1149
Joined: Mon Aug 14, 2006 3:56 pm
Location: Black Forest, Germany

Post by Dilloh »

Hi richholl, and welcome to the forums.

From what I read here, I assume your newly created weapon will not show up. The most common error herefor is that the names and/or keys won't match, so stderr/stdout won't be of too much help in this case.

Looking at your specs, I find the following:
weapons_list.xml wrote:<BoltName="MyLaser"...>
units.csv wrote:Key
my_laser__upgrades
my_laser_beam__upgrades
...
Name
"my_laser"
"my_laser_beam"
So obviously, the BoltName "MyLaser" has no reference in units.csv since it is "my_laser" there. Simply change to BoltName="my_laser" - the names match now and you weapon should appear.

Also, be aware that you gave your weapon a common category within masterpartlist.csv - like "upgrades/Weapons/Mounted_Guns_Light", so that it can be bought on minor bases also, since you're assumably hanging out within Troy for testing issues. Take care, the game is character sensitive so lAsEr and LaSeR are not the same!

If this also doesn't help, make sure that your master part list is assorted correctly - so that your new beam weapon is in the "block" with all the other beams ( beginning in line 38 ).

Finally, if you're still stuck after all of this, I'd recommend to post master_part_list, units.csv and weapons_list so we might take a look at it.
Last edited by Dilloh on Wed Dec 12, 2007 8:15 pm, edited 1 time in total.
richholl
Explorer
Explorer
Posts: 8
Joined: Mon Dec 10, 2007 4:56 pm

Post by richholl »

Well, since the simplest of mysteries has been solved for the moment I will proceed with my tinkerings and see what kind of junk I can stir up. I smell an opportunity to invest in some of the Modder-kids and let them show me what end is up and get some lessons in the process.

Once again, thanks to all the brain surgeons who brought this classic into the now.
richholl
Explorer
Explorer
Posts: 8
Joined: Mon Dec 10, 2007 4:56 pm

Post by richholl »

Well, the weapon shows up in the game, BUT the specs are the same as the laser. I would be glad to attach the STDOUT and STDERR (yeah, I found them right under my nose in the main folder...) and have the pro's give them a browse for possible insight, but my account is not set to allow that. Any further help and suggestions would be welcome. Thanks.
ace123
Lead Network Developer
Lead Network Developer
Posts: 2560
Joined: Sun Jan 12, 2003 9:13 am
Location: Palo Alto CA
Contact:

Post by ace123 »

Try again.

PHPBB has some stupid "permissions" thing that requires each forum to specifically have attachments enabled.
It wasn't your account, but rather the General Modding forum did not allow attachments.

It should work now.
richholl
Explorer
Explorer
Posts: 8
Joined: Mon Dec 10, 2007 4:56 pm

Post by richholl »

ace123 wrote:Try again... It should work now.
Ah, yes. Here are the files. Thanks for any insights.
You do not have the required permissions to view the files attached to this post.
legine
Bounty Hunter
Bounty Hunter
Posts: 139
Joined: Mon Sep 27, 2004 8:40 am
Location: Germany
Contact:

Post by legine »

Welcome richholl!

Well no reason to lough or to cry, I know even less of modding a weapon then you do. It would be great if you could enhance the Wiki Howto if you feel something there is Missing.

That would be great. :D

Thanks.

Cheers
Peter
Post Reply