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.
Democracies OXP?
Moderators: winston, another_commander
- Dr. Nil
- ---- E L I T E ----
- Posts: 983
- Joined: Thu Sep 28, 2006 5:11 pm
- Location: Nearest Hoopy Casino
- Contact:
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
somewhere in \Oolite\AddOns\fsr.oxp\Config\shipdata.plist
and change
to
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:
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>
and change
Code: Select all
<string>systemEconomy_number lessthan 4</string>
Code: Select all
<string>systemGovernment_number equal 6</string>
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>"
300 billboards in Your Ad Here!
Astromines and more in Commies.
AVAILABLE HERE along with other Oolite eXpansion Packs.
- Cholmondely
- Archivist
- Posts: 5365
- Joined: Tue Jul 07, 2020 11:00 am
- Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
- Contact:
Re: Democracies OXP?
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?
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?
Comments wanted:
•Missing OXPs? What do you think is missing?
•Lore: The economics of ship building How many built for Aronar?
•Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
•Missing OXPs? What do you think is missing?
•Lore: The economics of ship building How many built for Aronar?
•Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
Re: Democracies OXP?
Cholmondely wrote: ↑Thu May 20, 2021 11:45 amBump!
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
- Cholmondely
- Archivist
- Posts: 5365
- Joined: Tue Jul 07, 2020 11:00 am
- Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
- Contact:
Re: Democracies OXP?
Where on earth did you get that sense of humour? Shouldn't it be illegal?cbr wrote: ↑Thu May 20, 2021 9:22 pmCholmondely wrote: ↑Thu May 20, 2021 11:45 amBump!
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
Comments wanted:
•Missing OXPs? What do you think is missing?
•Lore: The economics of ship building How many built for Aronar?
•Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
•Missing OXPs? What do you think is missing?
•Lore: The economics of ship building How many built for Aronar?
•Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
- Cody
- Sharp Shooter Spam Assassin
- Posts: 16081
- Joined: Sat Jul 04, 2009 9:31 pm
- Location: The Lizard's Claw
- Contact:
Re: Democracies OXP?
I hope it's not contagious!
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
And any survivors, their debts I will certainly pay. There's always a way!
- montana05
- ---- E L I T E ----
- Posts: 1166
- Joined: Mon May 30, 2016 3:54 am
- Location: lurking in The Devils Triangle (G1)
Re: Democracies OXP?
I did make me smile, thanks for that cbr
Scars remind us where we've been. They don't have to dictate where we're going.