Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment   Page 1 of 2      1   2   Next
salcor

Registered:
Posts: 107
Reply with quote  #1 
Mike,

I was wondering if you have any specific suggestions for modifying the Persistent Wars sandbox for use with my specific MOD?  What lines need modified to make it work with the Star Wars theme factions I have?

Salcor
Mike Substelny

Avatar / Picture

Administrator
Registered:
Posts: 2,990
Reply with quote  #2 
If you want to make a mod of the Persistent War script the first thing you should do is play a few games with it. You will want at least one starship crew plus a Game Master. You should probably be the Game Master so you can see how it works.

After that, if I understand your mod correctly, it's not so much finding the lines to edit but finding the fields to search and replace. The Persistent War was made for players to run TSN ships while the Kraliens, Arvonians, Torgoth, Skaraans, and Ximni are all run by AI. You would need to sub out the names of TSN ships for the Star Wars ships that players can play, and the names of everyone else's ships (and starbases) for the AI ships.

The Kralien "Inquisitor" class was a very rare AI ship for boss battles. It was made by scripting a bunch of units together, beefing up their stats, and wrapping them in a huge generic object with a horriffic looking art file. It was sort of like our Death Star. Once you have subbed in all your modded ships the Inquisitor code probably won't be useful anymore so you can just delete it.

If you want to mod the console UI and object names you should consult Mark Bell's TNG mod.

But my best advice is to just get ready for Artemis: Cosmos. You're going to enjoy modding that a lot more than Artemis 2.8.

__________________
"The Admiralty had demanded six ships; the economists offered four; and we finally compromised on eight."
- Winston Churchill
salcor

Registered:
Posts: 107
Reply with quote  #3 
I appreciate it.  When the modding tools for Cosmos drop I will start looking into it.


Salcor
Mike Substelny

Avatar / Picture

Administrator
Registered:
Posts: 2,990
Reply with quote  #4 
Cosmos will have some functional tools when it launches this Friday! It will definitely be enough for you to get started.
__________________
"The Admiralty had demanded six ships; the economists offered four; and we finally compromised on eight."
- Winston Churchill
salcor

Registered:
Posts: 107
Reply with quote  #5 
Wow, that is awesome! I look forward to it.

Salcor
salcor

Registered:
Posts: 107
Reply with quote  #6 
While I know the cosmos release is imminent I am still hacking away. I have a Galactic Civil War variant of the Persistent war script. Right now I can drop in imperial threats and some rebel friendlies. Looking good so far.

Salcor
Mike Substelny

Avatar / Picture

Administrator
Registered:
Posts: 2,990
Reply with quote  #7 
Quote:
Originally Posted by salcor
While I know the cosmos release is imminent I am still hacking away. I have a Galactic Civil War variant of the Persistent war script. Right now I can drop in imperial threats and some rebel friendlies. Looking good so far.

Salcor


That is excellent news! I hope it is working well for you.

I hope you get a look at Cosmos. It doesn't have as many mission scripts yet, but it is built to be very modable.

__________________
"The Admiralty had demanded six ships; the economists offered four; and we finally compromised on eight."
- Winston Churchill
salcor

Registered:
Posts: 107
Reply with quote  #8 
I haven't put anything up about my Galactic Civil War Mod in a while but I am just about complete with it. I have the Persistent War Sandbox Mission set up so it will allow GMs to put in Star Wars ships into the scenario. I did have a question though, I added a 13th sector to the game for a scenario that the GCW community wanted built. The mission revolved around a Rebel assault against an Imperial Station, and I thought "Awesome, the Artemis folks included code to do exactly that."  So I followed your example and just gave the target station that name Outpost Arrogant so I could plug directly into the existing code. 

So when I have playtested the scenario I activate the Deploy Marines and the ship gets all of the transmissions associated with the Deploy mechanics, but it does not create the Deploy button on the comm screen. I have also tried the Sensors - 0 coolant to 8 to reset, but that doesn't do anything either.  

I would appreciate any assistance the community would provide.

Salcor
Darrin

Registered:
Posts: 434
Reply with quote  #9 
Hmm. Well, first, check whether the sector has a number. The Deploy Transport button was only supposed to be used in a sector that had an enemy base, so there are conditionals to make sure you're in sector 1, 2, 3, or 6:

  <event name="Deploy Transport NotAvailable" id_arme="8c97d70e-a1c6-40cb-bc56-0a7299dc2f44" parent_id_arme="ffe98fe1-a292-4edb-98f2-934deb122bb1">
    <if_variable name="sector" comparator="NOT" value="1.0" />
    <if_variable name="sector" comparator="NOT" value="2.0" />
    <if_variable name="sector" comparator="NOT" value="3.0" />
    <if_variable name="sector" comparator="NOT" value="6.0" />
    <if_gm_button text="Deploy Transport" />

The code expects Outpost Arrogant to be in Sector 1, so it won't set the button unless you're in that sector. 

But that's not what you said... you said the "Deploy Transports" button isn't even showing up. Ok. Let me see if I can remember how this worked at Armada V.

The scenario we presented at Armada V was this: Player ships could capture enemy stations, but to do so, they needed to drop a "beacon" next to the station they wanted to capture. I think the beacon had to be within 500 meters to count. The reasoning behind this was something about the beacon helped guide the transports into the enemy station and probably helped with hacking the docking/hatch code or something... the stations likely have massive ECM/anti-hacking countermeasures to prevent this... maybe? Basically we wanted the players to get close enough to the station to drop the beacon because that sounded more challenging that just sending a bunch of transports to any enemy station. (We did not address whether enemy ships or stations could shoot/destroy the beacon, which a GM could probably simulate via a "delete" button, but at the time the GMs were too busy to think about this sort of thing.)

In the Persistent War GM screen, make sure you're in the correct sector with an enemy station. Click on the TSN Support button, and select "Activate Beacons". This should send a "Deploy Beacon" button to all player ships. If the player ships lose the button, then they can try the sensor/coolant 0 thing, but in the ballroom I think yelling "We don't have a Deploy Beacon button!" probably worked better. 

Once a player ship presses the Deploy Beacon button while next to an enemy station, they should get a message indicating whether the beacon is close enough. If it's too far away, then I believe they can pick it up and try again, or deploy another beacon that's closer. 

Under TSN Support, the GM has a button called "Station Report". This is supposed to let the GM know when a beacon is close enough to an enemy base, and how many "marines" are still defending each enemy base. If the GM isn't watching what's going on or doesn't notice the beacon/report, then nothing happens with the marines. 

It is up to the GM to press the "Deploy Transport" button once he sees that the players have deployed a beacon close enough. Under Deploy Transport, there should be a list of possible enemy bases to send the transports to. Pressing "Outpost Arrogant" creates two friendly transports with the Outpost Arrogant coordinates hard-coded as their target. If you need the transports to go to a different location, then you'll want to set that in the code beforehand. 

The idea was that the player ships would need to "escort" the transports as they got closer to their target. The transports are... not very good at navigating where they need to go, so the GM needs to keep an eye on the transports and hopefully can nudge them to the correct target if they get off-course. (In practice, I think the player ships were too busy elsewhere to help the transports much. If the transports get destroyed, then it was up to the GM to either generate another two transports, or to let the players know they needed to do something else for more transports (talk to the Admirals, spend build points, or whatever the GM felt was appropriate). 

Once the transports get close enough to the target base, then the script should handle the dice/math stuff to determine if the enemy base is captured. Each enemy base has 15 "defenders" and each transport that "docks" with the enemy base reduces the number of defenders by 3d6 (average of 10.5), so in theory, a single transport could capture a base, but usually it took two, sometimes three. If something goes wrong and the base doesn't flip sides, or there's a story reason for the base to get captured, then the GM has a button that can flip the side of a selected target. 

The "capture a base" code was kinda kludged together with the GM doing most of it "behind the curtains". At Armada V, we weren't sure if the players would even try to capture any bases, because the scenario we had given them didn't exactly explain why that would be a good thing (they were supposed to get more Build Points, but with two overworked GMs, it was hard to keep track of the "economic" side of the game.) It probably makes better strategic sense to just destroy the enemy bases, as this would presumably hurt the enemy's "Build Points" (we didn't really have a system for tracking that, we were just going to seat-of-our-pants that part of it.) As it turned out, the players captured all of the enemy bases. Which were then immediately destroyed by the enemy forces, because it didn't occur to the GMs that enemies would naturally and very quickly attack a "TSN" base deep in their own territory.



__________________
Call Sign (EF/TSN): Bassellope

salcor

Registered:
Posts: 107
Reply with quote  #10 
Darrin,

Thank you very much for the reply. I will have to go back through all of the beacon and transport codes to make sure I can make the needed correction. Sad that there wasn't enough GMs to cover the event, but it sounded like a blast.


Salcor
salcor

Registered:
Posts: 107
Reply with quote  #11 
Sorry after looking back over the question and answer, I realized I made an incorrect statement.  The "Deploy Beacon" button is not appearing on the Comm Stations' screen.  Now the rest was helpful because it allowed me to rework some of the code I didn't realize that was missing.  But after adding sector 13 into the troop transport code I ran the scenario again.  At the start of the scenario I (as the GM) hit "Activate Beacon."  The Com station gets all of the deploy beacon directives, but a new button does not appear on their screen.  Nor will it return after doing the reset in Engineering.


Salcor
Darrin

Registered:
Posts: 434
Reply with quote  #12 
Hmm. Not sure if it's relevant, but are you using Artemis 2.8.0 or 2.8.1? I know we made a minor code change to how the Comms buttons worked in Artemis 2.8.1, so that may be an issue? I don't recall the exact issue, but I think it involved sending comms buttons to specific player ships (which may be the problem you're dealing with here). If you don't have 2.8.1, then PM me and I will send you a link for the 2.8.1 exe. 

Once Activate Beacons is triggered, it's supposed to send comms buttons to each player slot, but since the Comms buttons are shared by all player ships, there are actually 8 different buttons sent"

"Deploy Beacon" to slot 0.
"Deploy Beacon " to slot 1.
"Deploy Beacon  " to slot 2. 
"Deploy Beacon   " to slot 3. 

and so on. The trailing spaces at the end of the button name allows the code to distinguish between what button was pressed, and thus the code knows which player slot pressed the button. However, this means there's a lot of fugly code that has to check which player slot pressed the button, and there are events to decrement the number of beacons on that ship by 1. 

I'm guessing you don't have 8 player ships flying around in the same scenario, so you don't have to use all that player-slot stuff. Try taking out the "player_slot=" attribute and see if the buttons appear. 



__________________
Call Sign (EF/TSN): Bassellope

NoseyNick

Avatar / Picture

Registered:
Posts: 349
Reply with quote  #13 
Quote:
Originally Posted by Darrin
If you don't have 2.8.1, then PM me and I will send you a link for the 2.8.1 exe.


2.8.1 EXE is available with the LAA tweak to handle >2GB of memory, at https://noseynick.org/artemis/Artemis-2.8.1-LAA.zip - and I suspect Star Wars mod, being one of the larger ones, would benefit from the extra RAM anyway.

I know it's extremely dubious to download EXEs from untrusted sources. If it makes you feel better, this is 2 bytes different to Thom's official 2.8.1 EXE, you can download both and pour over hexdumps if you wish to prove it has no extra malware... and Thom has given permission to distribute this modified one, but has no intention to distribute it himself.

salcor

Registered:
Posts: 107
Reply with quote  #14 
I have the 2.8.1 release I believe.

Nick, the LAA tweak works wonderfully for the GCW mod. I run into some textures that end up eating too much memory from time to time, but I think most of the kinks are ironed out. I was recently trying to puzzle through your instructions for setting the mod up on your Nebula server, but I think I need to dedicate a week to understand it all.

Salcor
salcor

Registered:
Posts: 107
Reply with quote  #15 
Its been a while since I have posted about this.  I have most of my basic mods working, I just need to do some actual plays with it. I was wondering though, does anyone have some code for adding Upgrades to the players ship?  For the player group I was setting this up for I was thinking of using the upgrades more a character abilities than random bits of equipment that you could pick up.  I would appreciate any suggestions.

Salcor
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.