Page 1 of 1
Script Documentation
Posted: Sat Jan 06, 2024 11:13 pm
by rmelvin
Is there a complete up to date Documentation of all the script. if so, where is it.
If not does someone out there loves writing manuals?
For I cannot find a complete up to date documentation Like:
Cannot use Decision for TYPE=2 Transport due to MPP spending.
Cannot use TYPE=2 for Unit system crash.
No definition in Sea Movement scripts about the #Cruise function.
Now there appear to be an issue in Mobilization 2 when using zero in the unit parameter.
All these little things included.
Plus, what would be great the document would come with all system updates with its updates.
Re: Script Documentation
Posted: Sun Jan 07, 2024 12:28 am
by Lothos
rmelvin wrote: Sat Jan 06, 2024 11:13 pm
Is there a complete up to date Documentation of all the script. if so, where is it.
If not does someone out there loves writing manuals?
For I cannot find a complete up to date documentation Like:
Cannot use Decision for TYPE=2 Transport due to MPP spending.
Cannot use TYPE=2 for Unit system crash.
No definition in Sea Movement scripts about the #Cruise function.
Now there appear to be an issue in Mobilization 2 when using zero in the unit parameter.
All these little things included.
Plus, what would be great the document would come with all system updates with its updates.
Documentation is at the top of each file and it describes what the command(s) do.
Re: Script Documentation
Posted: Sun Jan 07, 2024 3:45 am
by rmelvin
The versus still out there has the fatal error in Unit definition.
No definition of Naval Cruise exit.
Also, a well written would also have developer nuances.
Re: Script Documentation
Posted: Thu Jan 11, 2024 1:55 pm
by El_Condoro
Cannot use Decision for TYPE=2 Transport due to MPP spending.
Cannot use TYPE=2 for Unit system crash.
No definition in Sea Movement scripts about the #Cruise function.
Now there appear to be an issue in Mobilization 2 when using zero in the unit parameter.
1. Set #MPP_UPDOWN= 0. The decision can be referenced by a AI Transport script this way.
2. Not sure what you mean here - a #TYPE= 2 Unit script should fire whenever all conditions are met for as long as those conditions are met.
3. #NAVAL_CRUISE= Should the event apply naval cruise distances for unit movement? (True= 1; False= 0)
4. I have replied to this in the thread about this topic.
As to the documentation of all possibilities, I don't think it will happen - trial and error is how I have learned what I know about scripting and there are still (lots of) things I am learning.
Re: Script Documentation
Posted: Thu Jan 11, 2024 11:53 pm
by rmelvin
Thanks, Mobilization 2 is my screw up. I only have an excuse no reasons. Too much coffee to late and to long behind the screen. Awala mental block.
If TYPE=2 in unit scripts now works that a fix I missed in the ReadMe in updates. After my crashes the Development Team found the same thing.
Like you said, I had to figure out the #NAVAL_CRUISE. I was showing there are things missing in the definition. This would be something which would show up in an update script manual.
In the manual this thing about the Trasport your input would be there. This is something I am going to try in my next project. As you said the learning curve was a bear. I think I wrote each line at least twice minimum. And in my final product I toss about over 60% of my script work.
Thank you for your reply.
Re: Script Documentation
Posted: Fri Jan 12, 2024 4:38 am
by El_Condoro
I hear ya! I have been scripting for a couple of years and things make sense now (mostly) but it took a lot of trial and (more) error to have the understanding I now have. Keep posting your questions because this forum has very helpful and knowledgeable people frequenting it.