What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Uncommenting Ruby flask code gives compile errors

krone6

Member
Joined
Jun 11, 2012
Messages
441
Reaction score
0
I found the ruby flask section of the code and it said to uncomment it to use it as I have an RF. As soon as I remove the / it starts giving compile errors.

Compiler Error: c:\Users\krone6\Desktop\poe1.1bot_beta\Routines\Exile\Exile.cs(37,38) : warning CS0108: 'ExileRoutine.Exile.Log' hides inherited member 'Loki.Bot.CombatRoutine.Log'. Use the new keyword if hiding was intended.Compiler Error: c:\Users\krone6\Desktop\poe1.1bot_beta\Routines\Exile\Exile.cs(290,26) : error CS1525: Invalid expression term '/'
Compiler Error: c:\Users\krone6\Desktop\poe1.1bot_beta\Routines\Exile\Exile.cs(290,27) : error CS1026: ) expected
Compiler Error: c:\Users\krone6\Desktop\poe1.1bot_beta\Routines\Exile\Exile.cs(290,27) : error CS1002: ; expected
Compiler Error: c:\Users\krone6\Desktop\poe1.1bot_beta\Routines\Exile\Exile.cs(297,24) : error CS1002: ; expected
Compiler Error: c:\Users\krone6\Desktop\poe1.1bot_beta\Routines\Exile\Exile.cs(297,24) : error CS1525: Invalid expression term ','
Compiler Error: c:\Users\krone6\Desktop\poe1.1bot_beta\Routines\Exile\Exile.cs(297,25) : error CS1002: ; expected
Compiler Error: c:\Users\krone6\Desktop\poe1.1bot_beta\Routines\Exile\Exile.cs(303,24) : error CS1002: ; expected
Compiler Error: c:\Users\krone6\Desktop\poe1.1bot_beta\Routines\Exile\Exile.cs(303,24) : error CS1525: Invalid expression term ','
Compiler Error: c:\Users\krone6\Desktop\poe1.1bot_beta\Routines\Exile\Exile.cs(303,25) : error CS1002: ; expected
Compiler Error: c:\Users\krone6\Desktop\poe1.1bot_beta\Routines\Exile\Exile.cs(309,24) : error CS1002: ; expected
Compiler Error: c:\Users\krone6\Desktop\poe1.1bot_beta\Routines\Exile\Exile.cs(309,24) : error CS1525: Invalid expression term ','
Compiler Error: c:\Users\krone6\Desktop\poe1.1bot_beta\Routines\Exile\Exile.cs(309,25) : error CS1002: ; expected
Compiler Error: c:\Users\krone6\Desktop\poe1.1bot_beta\Routines\Exile\Exile.cs(315,24) : error CS1002: ; expected
Compiler Error: c:\Users\krone6\Desktop\poe1.1bot_beta\Routines\Exile\Exile.cs(316,17) : error CS1525: Invalid expression term ')'
Multiple routines found. Selecting current routine to the first one: Apoc's Ranger CR


Please read the following thread before using this program:
http://www.thebuddyforum.com/exileb...lebuddy-sotv-release-beta-revision-guide.html

Here is the code I'm working with:
// Uncomment this to use any ruby flask when you are on low health (RF).
*new Decorator(ret => _flaskCd.IsFinished && Me.HealthPercent < 50 && RubyFlasks.Count() != 0 && !Me.HasAura("flask_utility_resist_fire"),
new Action(ret =>
{
LifeFlasks.First().Use();
_flaskCd.Reset();
})),*/
It's on line 284 to 290 in Exile.cs on beta 795.

Any ideas what is going on?
 
To uncomment the code, it should look like this:

Code:
// Uncomment this to use any ruby flask when you are on low health (RF).
                new Decorator(ret => _flaskCd.IsFinished && Me.HealthPercent < 50 && RubyFlasks.Count() != 0 && !Me.HasAura("flask_utility_resist_fire"),
                    new Action(ret =>
                    {
                        LifeFlasks.First().Use();
                        _flaskCd.Reset();
                    })),

The /* and */ are block comment markers, whereas the // is just a single line.
 
--- End of inner exception stack trace ---
at Buddy.Coroutines.Coroutine.Resume(Object& value)
at Loki.Bot.v2.LokiCoroutine.Tick(Coroutine coroutine)
at Loki.Bot.v2.ActionRunCoroutine.Run(Object context)
at Loki.TreeSharp.Action.RunAction(Object context)
at Loki.TreeSharp.Action..()
at Loki.TreeSharp.Composite.Tick(Object context)
at Loki.Bot.BotMain.()

This happens when he goes to use it.

Code:
// Uncomment this to use any ruby flask when you are on low health (RF). new Decorator(ret => _flaskCd.IsFinished && Me.HealthPercent < 50 && RubyFlasks.Count() != 0 && !Me.HasAura("flask_utility_resist_fire"),
new Action(ret =>
{
LifeFlasks.First().Use();
_flaskCd.Reset();
})),
 
You have the first line of the code commented out still.

Should look like this:

Code:
new Decorator(ret => _flaskCd.IsFinished && Me.HealthPercent < 50 && RubyFlasks.Count() != 0 && !Me.HasAura("flask_utility_resist_fire"),
                    new Action(ret =>
                    {
                        LifeFlasks.First().Use();
                        _flaskCd.Reset();
                    })),
 
You have the first line of the code commented out still.

Should look like this:

Code:
new Decorator(ret => _flaskCd.IsFinished && Me.HealthPercent < 50 && RubyFlasks.Count() != 0 && !Me.HasAura("flask_utility_resist_fire"),
                    new Action(ret =>
                    {
                        LifeFlasks.First().Use();
                        _flaskCd.Reset();
                    })),

I pasted what you gave me and nothing changed in the code. I tested it and still the same problem. Here's what I have in picture form: http://puu.sh/8bPS6.png
 
Ah sorry, it must have been a formatting issue on the forum that made it look like the top line was commented out. One thing I notice though.... it's doing LifeFlasks.First().Use();

That would use a healing pot I'm pretty certain from my knowledge of the code....

Would think it should be RubyFlasks.First().Use(); but I don't have one to test currently as I'm not running RF builds.
 
Ah sorry, it must have been a formatting issue on the forum that made it look like the top line was commented out. One thing I notice though.... it's doing LifeFlasks.First().Use();

That would use a healing pot I'm pretty certain from my knowledge of the code....

Would think it should be RubyFlasks.First().Use(); but I don't have one to test currently as I'm not running RF builds.

That was it. Works fine now. I see we also caught a bug for pushedx to fix in the next version ;).
 
Coulda sworn I fixed that already lol but guess not! It'll be fixed automatically in the next beta but for now, just fix your local copies.
 
Back
Top