Richard
Registered:1428085495 Posts: 144
Posted 1445787878
Reply with quote
#1
Hi, I can´t find a script reference for version 2.2 of the game. I enjoy to make custom missions to play with my friends and I´d like to incorporate some of the new features that came with Artemis 2.2.0 into my scripts. But Does it exist? Where can I find it? This one is a bit old and it doesn't have info about the new monsters, wrecks or anomalies for instance. http://artemis.forumchitchat.com/post/mission-script-reference-2-0-6477317 And what about a new version of that great mission editor? Some hero should save us all and make it!
ryleyra
Registered:1399599588 Posts: 3,214
Posted 1445796015
Reply with quote
#2
The main differences between missions in 2.2 and 2.1 are the addition of monsters and the new anomalies. The create command has two new attributes, as follows: -- for anomalys ATTRIBUTE: pickupType VALID: 0-7 0 = ITEMTYPE_ENERGY, //Anomaly 1 = ITEMTYPE_RESTORE_DAMCON,//Vigoranium Nodule 2 = ITEMTYPE_HEAT_BUFF, //Cetrocite Crystal 3 = ITEMTYPE_SCAN_BUFF,//Lateral Array 4 = ITEMTYPE_WEAP_BUFF,//Tauron Focusers 5 = ITEMTYPE_SPEED_BUFF,//Infusion P-Coils 6 = ITEMTYPE_SHIELD_BUFF,//Carapaction Coils 7 = ITEMTYPE_COMM_BUFF,// secret code case
-- for monsters ATTRIBUTE: monsterType VALID: 0-7 0 = GMMONSTER_CLASSIC, 1 = GMMONSTER_WHALE, 2 = GMMONSTER_SHARK, 3 = GMMONSTER_DRAGON, 4 = GMMONSTER_PIRANHA, 5 = GMMONSTER_TUBE, 6 = GMMONSTER_BUG, 7 = GMMONSTER_DERELICT,
In addition, the podnumber attribute now applies to piranhas as well as whales. Note you can now create whales either as a monster, with the monsterType of 1, or in the old way. if_fleet_count now takes a side value and can include surrendered ships. There is also a property missileStoresPShock for bases. Note, however, that there is NO PShock access commands for ships, nor can bases be told to build PShock. Finally, the direct command will now no longer work with anything but generic meshes and AI ships. Unfortunately, all of this is largely moot, because Artemis 2.2 has a bug in it that causes the game to crash if you attempt to create any monster. You can still create whales in the old way, but you can no longer create monsters. It's likely that no one has posted the 2.2 script reference for just this reason. A new version of 2.2 will be coming out soon. Hopefully this release will fix the bugs with mission scripting, (both monsters and the new PShock) and the reference will be posted.
Richard
Registered:1428085495 Posts: 144
Posted 1445797168
Reply with quote
#3
Very detailed reply. Thanks a lot!
Where did you find all this info?
And by the way, in previous versions wasn't possible to get information about the levels of engineering or to change it via script (warp at 80%, beams at 180%, stuff like that). Is it possible now?
Thanks again.
Xavier Wise
Registered:1375817447 Posts: 1,362
Posted 1445893152
Reply with quote
#4
Quote:
And what about a new version of that great mission editor? Some hero should save us all and make it!
Hear, hear! That mission editor is brilliant in my opinion. It simplified making missions, and I have made some incredibly complex stuff with it. Without the mission editor, wouldnevr have been able to get in to mission scripting at all. It is starting to become more and more out of date though, making it challenging to include the new stuff in a script. I remember the guy making it, and another taking over updating, but I hear very little about it now. In the TSN RP Community, we're lucky that we have a couple of people who are able to fix it up, but few have the time to tak it on completely and get it well up to speed again.
I think the guy who made it included a way to easily add more stuff to it in terms of the xml script you can use, bht I have little idea on how to do that, or fix a couple of the bugs that have been cropping up. If it comes down to it, I may have to teach myself how to code properly so I can at least figure out how to add to it.
__________________ Fleet Captain Xavier Wise - TSN SabreLink to TSN RP Community Website Want to follow development of the TSN Sandbox? Head here:https://ko-fi.com/xavierwise
ryleyra
Registered:1399599588 Posts: 3,214
Posted 1445897907
Reply with quote
#5
Quote:
Originally Posted by Richard Very detailed reply. Thanks a lot! Where did you find all this info?
The mission documentation is included in the Artemis installation. It's called "mission-file-docs.txt". Quote:
And by the way, in previous versions wasn't possible to get information about the levels of engineering or to change it via script (warp at 80%, beams at 180%, stuff like that). Is it possible now? Thanks again.
No, although you can "read" some engineering levels by detecting its effect on the ship. For instance, I have a mission where I have something happen when you set Impulse power to 300%, and Helm throttle to 100%. I just read the property currentRealSpeed, and if it is three times the normal value of topspeed (1.8 for a Light Cruiser) then I trigger the event. That wouldn't work for systems like Beams or Sensors, though. I'm hoping that upcoming releases address this issue. Apparently, Thom is working on a way to make certain commands (such as Engineering grid damage) work for all ships instead of just the first one.
Mike Substelny
Administrator
Registered:1375273622 Posts: 2,990
Posted 1445949467
Reply with quote
#6
Quote:
Apparently, Thom is working on a way to make certain commands (such as Engineering grid damage) work for all ships instead of just the first one.
This is true, though currently the effort is in the very deepest levels of the code, where references to the various player ships must be changed before that effort can begin. I know of only one multi-crew testing of this new code and it crashed as soon as a multi-ship mission was launched. Thom is currently working on making that code stable for the next release. I believe the ability for scripts to reference multiple player ships will come later, probably at Artemis Armada Two next April.
__________________"The Admiralty had demanded six ships; the economists offered four; and we finally compromised on eight." - Winston Churchill
ryleyra
Registered:1399599588 Posts: 3,214
Posted 1445964219
Reply with quote
#7
Oh, so it's like 2.0, not much changing on the surface, but the whole underlying engine is being re-written so you can have things like enemy bases and the War Server in 2.1. I can wait on multi-ship missions. The workarounds work okay for now.