Page 1 of 1
Democracies OXP?
Posted: Mon Apr 16, 2007 4:39 pm
by lolwhites
We've had OXPs for Dictatorships, Communists and Anarchies. It occurred to me that democracies ought to have election campaigns now and again. How easy would it be to write an oxp that gave you a chance of running into a campaign - ships flying around blaring "Vote for the Lobstoid Party" and trailing banners calling for legalised narcotics and so on?
nb have no idea about coding so I wouldn't know where to start, but maybe someone out there might think it worth developing.
Posted: Mon Apr 16, 2007 6:29 pm
by Dr. Nil
It should be fairly easy. You could use the Frog Space Rickshaw as a base for such an OXP.
Retexture it by changing \Oolite\AddOns\fsr.oxp\Textures\fsrtexture.png
Then put
Code: Select all
<key>conditions</key>
<array>
<string>systemGovernment_number equal 6</string>
</array>
somewhere in \Oolite\AddOns\fsr.oxp\Config\shipdata.plist
and change
Code: Select all
<string>systemEconomy_number lessthan 4</string>
to
Code: Select all
<string>systemGovernment_number equal 6</string>
in \Oolite\AddOns\fsr.oxp\Config\script.plist
And finally cook up some fitting fragments for \Oolite\AddOns\fsr.oxp\Config\descriptions.plist and the sendTargetCommsMessage lines of \Oolite\AddOns\fsr.oxp\AIs\rickshawAI.plist (remember to use new names for your arrays in descriptions (those headlines like "<key>rickshaw-enemy</key>" and to change those accordingly in the AI)
Of course you'll also have to rename all instances of textures, models, plist entries and AIs.
You should be able to extract everything you need to know to do that from the following guide:
Simple OXP retexturing guide wrote:1) Copy an existing OXP folder with something simple in it. I'll just use nuvipers.oxp for demo purposes here (it's only got ships in it).
2) Rename your copied folder to the name of your new ship or something else which doesn't clash with an existing oxp (remember to keep the .oxp suffix). Let's say it's called dubious_profit.oxp
3) Go to the folder dubious_profit.oxp\Textures and delete the textures already there. Put your own texture dubious_profit.png into this folder.
4) Go to the folder dubious_profit.oxp\Models and delete the files there. Make a copy of the model for the original ship that you're re-texturing into this folder (eg. python_redux2.dat make sure it's the one with the name corresponding to the texture you used) from ...\Oolite\oolite.app\Contents\Resources\Models and rename it to dubious_profit.dat
5) Get a text editor like Vim (
http://www.vim.org/ ) which makes it easy to see what's going on inside the files.
6) Open dubious_profit.dat with your text editor and use search and replace to change all instances of python_redux2.png (or the name of the texture your base model used) to dubious_profit.png
7) Go to ...\Oolite\oolite.app\Contents\Resources\Config and open shipdata.plist with your text editor. Search for the name of the model you used (eg. python_redux2.dat). Scroll up until you get to the previous instance of "<key>" (eg. "<key>python-blackdog</key>"). Mark everything from and including "<key>" down to and including the next instance of "</dict>" NOT "<dict>" (which would only be the next line;)) and do a 'copy'.
8 ) Go to the folder dubious_profit.oxp\Config and open shipdata.plist. Mark everything from and including the first instance of "<key>" (here "<key>viper2</key>") to the last-but-one instance of "</dict>" (leaving only a "</dict>" and a "</plist>" at the end of the file and paste the entry you copied from the shipdata.plist in 7.
9) Find the entry for the model in your new shipdata.plist by searching for it's name (here "python_redux2.dat") and replace it with the name of your own model (here "dubious_profit.dat"). Now search the file for "roles" if the line below "<key>roles</key>" says anything but "<string>pirate</string>" change so that it only says "<string>pirate</string>". Change the name of the ship both at the top (here "<key>python-blackdog</key>" to "<key>dubious_profit</key>") and in the line below "<key>name</key>" (here "<string>Python</string>" to "<string>Dubious Profit</string>"
10) Open demoships.plist with your editor. Remove the line "<string>viper-cruiser</string>" and change the line "<string>viper2</string>" to "<string>dubious_profit</string>"
Re: Democracies OXP?
Posted: Thu May 20, 2021 11:45 am
by Cholmondely
Bump!
An interesting idea.
But where would the advertising take place? The politicians would want to target voters only. So around the windows of orbital stations and close to visiting liners with voting fodder ready to be disgorged or embarked. Would they really be seen anywhere else?
Re: Democracies OXP?
Posted: Thu May 20, 2021 9:22 pm
by cbr
Cholmondely wrote: ↑Thu May 20, 2021 11:45 am
Bump!
An interesting idea.
But where would the advertising take place?
To encourage you on your dark path here's the rickshaw texturemap for the single candidate from Frog N@t Fish party
Re: Democracies OXP?
Posted: Thu May 20, 2021 9:41 pm
by Cholmondely
cbr wrote: ↑Thu May 20, 2021 9:22 pm
Cholmondely wrote: ↑Thu May 20, 2021 11:45 am
Bump!
An interesting idea.
But where would the advertising take place?
To encourage you on your dark path here's the rickshaw texturemap for the single candidate from Frog N@t Fish party
Where on earth did you get that sense of humour? Shouldn't it be illegal?
Re: Democracies OXP?
Posted: Thu May 20, 2021 10:10 pm
by Cody
I hope it's not contagious!
Re: Democracies OXP?
Posted: Mon May 24, 2021 2:12 pm
by montana05
Cody wrote: ↑Thu May 20, 2021 10:10 pm
I hope it's not contagious!
I did make me smile, thanks for that cbr