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

Reloading CC?

Einar255

New Member
Joined
Jun 23, 2010
Messages
2
Reaction score
0
Is it possible to reload a CC(for changes) without having to restart hb? If so, how?
 
You used to be able to Stop/Start and this would recompile the CC.

Since this has been taken out, CC development has slowed right down for me..... makes it very painful

I've been told it was taken out because 10% of the user base crashed on recompile due to name spaces etc... maybe it could be made into an option?
 
You couldn't recompile before anyway. They assemblies are never unloaded from the current AppDomain, so you have multiple instances of the same assembly. You'd need to change the namespace every time just to have it recompile, and be usable. And then you'd have to hope your current CC was the one that got picked.
 
You couldn't recompile before anyway. They assemblies are never unloaded from the current AppDomain, so you have multiple instances of the same assembly. You'd need to change the namespace every time just to have it recompile, and be usable. And then you'd have to hope your current CC was the one that got picked.

Regardless, you could make code changes in a CC and stop/start HB to have it re-read the CC. Made it much easier to test CC changes in game without having to exit/open HB every time :(
 
Regardless, you could make code changes in a CC and stop/start HB to have it re-read the CC. Made it much easier to test CC changes in game without having to exit/open HB every time :(

For some reason; I don't believe you. Maybe it's just that I know how .NET works in terms of assemblies. You were probably getting lucky that your "changed" assembly was the one chosen first. There's no guarantee though.
 
For some reason; I don't believe you. Maybe it's just that I know how .NET works in terms of assemblies. You were probably getting lucky that your "changed" assembly was the one chosen first. There's no guarantee though.

I've done it hundreds of times :P

Change code, save file, hit start on already-open HB, new code works, rinse, repeat.

No more though, sadly.
 
For some reason; I don't believe you. Maybe it's just that I know how .NET works in terms of assemblies. You were probably getting lucky that your "changed" assembly was the one chosen first. There's no guarantee though.
Ski is right, this did work. The changes made came through after a stop/start.
 
One easy way to refresh it, without closing HB; is if you stop HB. Go to the General Settings tab, and hit CC Configuration, it will reload the custom class. At least it works for me.... :P

Mitch.
 
Back
Top