Another addition would be to rename the functions to this.$disableSystems and this.$restoreSystems, and generally putting a '$' in front of all self-defined functions (as opposed to event handlers). Don't forget to put it in also in the places where the functions are called.
Ahruman would be grateful.
Is this just a convenient way to differentiate between event handlers and functions, or is it more technical than that? Should all self-defined function have $ in these days?
I've put the extra tweaks into v1.10 so that:
- any missiles are re-enabled once the challenge is over or you dock/leave the system while the challenge is still running
- placeholder equipment is used to temporarily disable (rather than damage) energy bombs, fuel injectors and cloaking devices where necessary
- I've made some slight updates the readme to explain things
Give that a go and let me know if there are any issues.
Download Resistance Commander plus many other exciting OXPs HERE
Is this just a convenient way to differentiate between event handlers and functions, or is it more technical than that? Should all self-defined function have $ in these days?
It’s a namespace issue. All properties starting with letters on Oolite-defined objects (including Script objects) are reserved for future use by the game.
I seem to be having problems with Feudal States v1.10
The duel system seems to working fine, but if I do a mission (tribute etc), it doesn't show up as a contract (on F5 screen)
but it shows the mission destination on the galactic chart. When I make planetfall and dock, there is no acknowledgement.
It looks like the mission has been 'forgotten'
*Neil voice from 'The Young Ones' "Ouch, ouch! That laser's really hot! Heavy!"
I seem to be having problems with Feudal States v1.10
The duel system seems to working fine, but if I do a mission (tribute etc), it doesn't show up as a contract (on F5 screen)
but it shows the mission destination on the galactic chart. When I make planetfall and dock, there is no acknowledgement.
It looks like the mission has been 'forgotten'
Oops, looks a line of script ended up in the wrong place. Please download the file again and check it resolves the issue.
Note that for the tribute mission, you only need to visit the main station of the mission destination before returning home to the Royal Court.
Download Resistance Commander plus many other exciting OXPs HERE
I also suspect the reset condition to be a culprit in the function shipExitedWitchspace, which reads;
Yup; that expression will always evaluate as true. (Specifically, it will always evaluate as either "DELIVERY_DECLINED" or "RANSOM_DECLINED", and non-empty strings are truthy values.)
If you want to avoid the duplication, there are two clean ways:
I finally got a tournament invitation, went to the system's Hunting Lodge, but i was told that I need a different ship, my Vortex is banned
OK, I traded it in for a Firefly, put on some good upgrades (mil.laser, shield boosters, etc), went back and entered the tournament. First task is supposed to be static shooting game, I was told there are 10 targets around the marker but I just can not find any...
How do they supposed to look like ? Are they supposed to appear on the radar ?
My radar only shows the Lodge and the Tournament buoy. I parked beside the buoy and looked in every possible direction but I could not see anything worth shooting at -- I see stars, planet, sun, buoy and the lodge nothing else.
If memory serves me correctly, you aren't allowed beyond a certain distance from the buoy, but you may have to patrol very close to that perimeter in order to put yourself in scanner range of the targets.
You'll have been banned due to the fact that the Vortex has turrets.
The targets, if I recall correctly, are shield shaped. They can be seen on the radar as white blobs, and should be within scanner range of the tournament buoy. Why you can't see them, I don't know...
Sorry, I'm still working through some of the issues remaining since the last update. In particular, I tweaked the hunting lodge's coordinates for the challenges but didn't get around to modifying the same for the tournament aspects. I'll fix this and double check that the tournament events are still working as expected.
Download Resistance Commander plus many other exciting OXPs HERE
Ok I've now included tournament-related updates in a version v1.11 available from my site. As well as fixing some things I've made a few small tweaks which should hopefully improve the playability of some of the events.
JD's tip for the first event is spot on - you may not be able to see the targets initially, but if you move around the buoy a bit the ones furthest out should appear on your scanner. Once you manage to get a visual, you just need to make sure you're still within 5km of the buoy when you take the shot.
Download Resistance Commander plus many other exciting OXPs HERE