ndo360 / codelinkv2

Automatically exported from code.google.com/p/codelinkv2
0 stars 0 forks source link

Enchancements to the batch behaviour. #611

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Please provide detailed Information about the Feature you would like to
see.

1) It would be great if batches could take arguments. I think that is the 
simplest and least time-consuming to implement feature, which can allow writing 
of generic batches. Example of use how I imagine it:

batch.My Batch.50.100

Then in the batch:

wait:%1 //wait for 50
batch.My Second Batch.%2 //pass 100 as argument for "My Second Batch"
or
batch.My %2 Batch //run the batch with filename "My 100 Batch" with no arguments

2) When calling batch2 from batch1, it would be nice if batch1 continued after 
batch2 has finished. To prevent from infinite recurrency, only one instance per 
file could be created. If batch1 calls batch2, and instead of exiting calls 
batch1, we know that it will never fall back, so all instances can be killed 
before starting new batch1.

3) I have lots of other ideas to enchance the batch language, including 
functions which give you information about max/current health of your 
components, allowing calculations like wait:(workstation.mem.maxhealth - 
workstation.mem.currenthealth) / 10, introducing conditions, loops, perhaps 
basic-like loops using goto function, variables... but let's forget about point 
3 for now, it would be great if you could implement even only point 1.

Please rate the importance of your Feature Request *for others*
[Low|Med|High]: Low

Original issue reported on code.google.com by mihil...@gmail.com on 6 Oct 2013 at 10:50

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I am strongly against most of these enhancements (in particular, status 
functions and branch control). Being able to create batch files that work well 
in a variety of situations, and learning how to effectively choose and run 
scripts on the fly *without* batch files to adapt to situations, is part of the 
strategic art that makes a player good at PvP. Being able to express your 
entire strategy in batch language then post it on the forums so everybody and 
their brother can use it sucks the spirit pretty dry. - PartyFlava

Original comment by jason.ci...@gmail.com on 7 Oct 2013 at 7:00