Copy between automation files

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
User avatar
jimibt
Posts: 4194
Joined: Mon Nov 30, 2015 6:42 pm

Being the lazy git that I am, rather than go thro the laborious process of copying every rule from one file to another, I'd like to know if there's a SAFE way to copy/merge tow rules files.

What I've tried so far by way of example:

1. open both files in notepad++
2. examine the number of rules in each
3. Change the value on line #4 to 7(i.e. if merging a 3 rule set with a 4 rule set, change the base file's value to match the combined total of 7)
4. copy paste the rules sections from the merge file and renumber the placeholders from their internal values (i.e. 0001, 0002 etc, to sequntially match their new place in the file, i.e. 0004 to 0007
5. Save the new file with an appropriate name

Now, having done all of this, and meticulously examining the file line spacings etc, I still get an error when importing the file and trying to open it in guardian.

Has anyone got any tips on how to safely do this?? (Peter.. etc, etc??).

Cheers all

[edit] - given the number of pm's i've had on this little gizmo, i thought it best to add the download url into this message: https://www.dropbox.com/s/dmof6wygyo3yj ... s.exe?dl=0
Last edited by jimibt on Tue Jan 03, 2017 10:28 am, edited 1 time in total.
User avatar
jimibt
Posts: 4194
Joined: Mon Nov 30, 2015 6:42 pm

ignore, I must have had a line break issue in play -it worked on the last try just now!! :D
shakespeare
Posts: 113
Joined: Sat May 21, 2016 1:43 pm

If you send me all your profitable automation files I'd be happy to provide a free copy/merge service. You're welcome! :lol:
User avatar
jimibt
Posts: 4194
Joined: Mon Nov 30, 2015 6:42 pm

shakespeare wrote:If you send me all your profitable automation files I'd be happy to provide a free copy/merge service. You're welcome! :lol:
as a follow on from this question (of mine) a few weeks back, I've since created a simple little .net app that opens an existing rules file and allows you to ping sections of the rule into a newly pending ruleset. this means that you can combine as many sections from existing rule files into one new rule file at will.

if anyone would like this little utility, just pm me and i'll arrange a way to send it to you. i've actually been using it myself for a few weeks and have, as a result, whipped up a little library of *templates* (i.e. simple signals, back bet rules etc) that really help me pull together an idea really quickly without copy/paste errors.

[edit] - you can download it from here: https://www.dropbox.com/s/dmof6wygyo3yj ... s.exe?dl=0



anyway, a small little gift to the community in return for all the valuable help that's been given to me on an ongoing basis - there if interested.
You do not have the required permissions to view the files attached to this post.
Last edited by jimibt on Tue Jan 03, 2017 10:28 am, edited 2 times in total.
User avatar
Dallas
Posts: 23493
Joined: Sun Aug 09, 2015 10:57 pm

Looks a nifty little tool thanks for offering to share :)
User avatar
jimibt
Posts: 4194
Joined: Mon Nov 30, 2015 6:42 pm

Dallas wrote:Looks a nifty little tool thanks for offering to share :)
FYI -have updated this little utility to a new version. see screenshot above.
User avatar
ShaunWhite
Posts: 10389
Joined: Sat Sep 03, 2016 3:42 am

This is EXACTLY what I've been looking for, many thanks ....but.... When I run it and click on any of the 'Open' buttons, it just hangs and I have to kill it with task manager. :(

Any ideas? What info can I give you to help?
(I'm on Win7Pro, running it from the desktop)
User avatar
Geordie
Posts: 179
Joined: Fri Sep 12, 2014 10:54 am

jimibt wrote:anyway, a small little gift to the community in return for all the valuable help that's been given to me on an ongoing basis - there if interested.
Awesome, very, very useful, works great, many thanks, jimibt :D


One question - what are Wip files?
User avatar
jimibt
Posts: 4194
Joined: Mon Nov 30, 2015 6:42 pm

ShaunWhite wrote:This is EXACTLY what I've been looking for, many thanks ....but.... When I run it and click on any of the 'Open' buttons, it just hangs and I have to kill it with task manager. :(

Any ideas? What info can I give you to help?
(I'm on Win7Pro, running it from the desktop)
Hi Shaun - I'm afraid I haven't experienced this issue. I wonder if you could pop a screenshot on here (even tho i'm certain all it shows is a blank dialog box).

Will try my best to get to the bottom of it tho...
User avatar
jimibt
Posts: 4194
Joined: Mon Nov 30, 2015 6:42 pm

Geordie wrote:
jimibt wrote:anyway, a small little gift to the community in return for all the valuable help that's been given to me on an ongoing basis - there if interested.
Awesome, very, very useful, works great, many thanks, jimibt :D


One question - what are Wip files?
Geordie, glad it works for you. WIP files are simply Work In Progress rules. Was just my little way of building up rules *off piste* without tampering with live in prod rules. you can safely ignore this option if not required.
User avatar
ShaunWhite
Posts: 10389
Joined: Sat Sep 03, 2016 3:42 am

jimibt wrote: Hi Shaun - I'm afraid I haven't experienced this issue. I wonder if you could pop a screenshot on here (even tho i'm certain all it shows is a blank dialog box).
All sorted jimibt ;) ...to be honest I don't know what the problem was...just did a clean reboot and it's fine. I'd been messing with all kinds of stuff and my machine hadn't been off for days....not trying a reboot was a rookie error.

Thanks for the offer to help investigate.. all I need to do is get organised now with my std header / footer blah blah blah. I bet you quite enjoyed making it, you've made me a bit nostalgic for the days when I used to program stuff. I used to love it but that was a looooong time ago now. VBA keeps that part of me satisfied, but it's not the same.

Thanks again jimi, I owe you a pint.
User avatar
Geordie
Posts: 179
Joined: Fri Sep 12, 2014 10:54 am

jimibt wrote:Geordie, glad it works for you. WIP files are simply Work In Progress rules. Was just my little way of building up rules *off piste* without tampering with live in prod rules. you can safely ignore this option if not required.
Great idea, I like that, thanks again :D
User avatar
jimibt
Posts: 4194
Joined: Mon Nov 30, 2015 6:42 pm

glad both sorted now. not that there's much more can be done with this little app, but if there are any suggestions or issues, just let me know. oh and btw, if ever you hit a real problem and need to get the previous version of the rule, just navigate to:

C:\Users\yourusername\AppData\Roaming\Bet Angel\Bet Angel Professional\Automation\bakup

in here, you'll find every change that you've made, with a horrid datestamp naming convention (e.g Back all 15 v2_22-Oct-2016 12.35.17.baf

this should get you out of the wood, should the app do anything silly.
Post Reply

Return to “Bet Angel - Automation”