Jump to content


Photo

What code in BCS script makes blue foot circles??


  • Please log in to reply
9 replies to this topic

#1 Hoppy

Hoppy

    Mage Hunter

  • Member
  • 2107 posts

Posted 03 August 2007 - 05:52 PM

Hello modders! I am having a curious problem with non selectable/moveable characters in a one on one challenge in an Arena (RoT) I am trying to find what causes this effect and possibly edit the script to at least make one player moveable to engage the hostile fighter. Even in this idle state the character script is not active like in normal battles.
Any thoughts on this?
Thanks in advance.
Cheers,
Hoppy
?May God defend me from my friends; I can defend myself from my enemies.? - Voltaire

"If you think that a size of the mod indicates an amount of bugs that it introduces and their severity you're totally wrong...
Try not to use next time a load of shitty "super-mega-improving-tweaking-revising" small mods that you have installed and try to meet Wulfgar once again."
- King Diamond


Posted Image The Definitive Guide to Trolls

"Finding food and a place to sleep is your own business. I imagine Paul the Cat should have some fun with you, too" - Potencius in The Darkest Day
"You have been warned, little bastard!" -Khelben to a young <CHARNAME>in Check the Bodies
There are those who will snivel, and offer nothing in return except criticism, meanwhile never lifting a finger to do other than to cut other peoples labor down simply for the fact that they lack the capability to put anything of their own together. -erebusant

#2 berelinde

berelinde

    Troublemaker

  • Modder
  • 4916 posts

Posted 03 August 2007 - 06:08 PM

Does this follow a cutscene? If so, it's possible that the actions of the cutscene didn't have time to complete before the cutsene ended and the characters aren't un-held.

"Imagination is given to man to console him for what he is not; a sense of humor, for what he is." - Oscar Wilde

berelinde's mods
TolkienAcrossTheWater website
TolkienAcrossTheWater Forum


#3 Hoppy

Hoppy

    Mage Hunter

  • Member
  • 2107 posts

Posted 03 August 2007 - 07:07 PM

Yes it is like teleporting to an area after we talk to the staff guy. There should be control of at least one character to actually battle one on one. The hostile foe attacks while my PC can't move(blue circle) thus the only way to beat the guy is ctrl+y. Not really a normal cutscene where all action is involuntary but maybe you are on to something, berelinde where it thinks it is still in a cutscene.
?May God defend me from my friends; I can defend myself from my enemies.? - Voltaire

"If you think that a size of the mod indicates an amount of bugs that it introduces and their severity you're totally wrong...
Try not to use next time a load of shitty "super-mega-improving-tweaking-revising" small mods that you have installed and try to meet Wulfgar once again."
- King Diamond


Posted Image The Definitive Guide to Trolls

"Finding food and a place to sleep is your own business. I imagine Paul the Cat should have some fun with you, too" - Potencius in The Darkest Day
"You have been warned, little bastard!" -Khelben to a young <CHARNAME>in Check the Bodies
There are those who will snivel, and offer nothing in return except criticism, meanwhile never lifting a finger to do other than to cut other peoples labor down simply for the fact that they lack the capability to put anything of their own together. -erebusant

#4 berelinde

berelinde

    Troublemaker

  • Modder
  • 4916 posts

Posted 03 August 2007 - 07:14 PM

I don't have that mod installed, but perhaps I should move this thread to the appropriate forum?

Edit: and done. Hopefully, someone who does have this mod installed can guide you through a workaround. Or offer some advice.

Edited by berelinde, 03 August 2007 - 07:17 PM.

"Imagination is given to man to console him for what he is not; a sense of humor, for what he is." - Oscar Wilde

berelinde's mods
TolkienAcrossTheWater website
TolkienAcrossTheWater Forum


#5 Hoppy

Hoppy

    Mage Hunter

  • Member
  • 2107 posts

Posted 03 August 2007 - 07:37 PM

Thanks, berelinde :D
?May God defend me from my friends; I can defend myself from my enemies.? - Voltaire

"If you think that a size of the mod indicates an amount of bugs that it introduces and their severity you're totally wrong...
Try not to use next time a load of shitty "super-mega-improving-tweaking-revising" small mods that you have installed and try to meet Wulfgar once again."
- King Diamond


Posted Image The Definitive Guide to Trolls

"Finding food and a place to sleep is your own business. I imagine Paul the Cat should have some fun with you, too" - Potencius in The Darkest Day
"You have been warned, little bastard!" -Khelben to a young <CHARNAME>in Check the Bodies
There are those who will snivel, and offer nothing in return except criticism, meanwhile never lifting a finger to do other than to cut other peoples labor down simply for the fact that they lack the capability to put anything of their own together. -erebusant

#6 -Radagast-

-Radagast-
  • Guest

Posted 04 August 2007 - 01:29 AM

It was very easy to do that after all. As long as u want to make a specific character from the group like any fighter from original SoA like Mazzy or Korgan or any fighter from RoT like Wulfgar or Bruenor to become SELECTED its easy to fix the blue circle thing. Here's what I did :


I searched in the BCS file through NI search for RA4300.bcs, I then narrowed my search to "unselectable". Loads of strings popped up quite some hundreds tbh. If u search carefully on the file u will see that there are some Large sections of "Ifs" that are about a specific character and have strings like these :


IF
//////The Next line defines which character its about.
Dead("Brue2") // Bruenor
OR(5)
Global("AbaBru","GLOBAL",27)
Global("AbaBru","GLOBAL",28)
Global("AbaBru","GLOBAL",29)
Global("AbaBru","GLOBAL",30)
Global("AbaBru","GLOBAL",31)
THEN
RESPONSE #100
Wait(1)
ClearAllActions()
HideGUI()
StartCutSceneMode()
FadeToColor([20.0],0)
Wait(1)
ActionOverride("AuPe1",DestroySelf())
ActionOverride("AuPe2",DestroySelf())
ActionOverride("AuPe3",DestroySelf())
ActionOverride("AuPe4",DestroySelf())
ActionOverride("AuPe5",DestroySelf())
ActionOverride("AuNo1",DestroySelf())
ActionOverride("AuNo2",DestroySelf())
ActionOverride("AuNo3",DestroySelf())
ActionOverride("AuNo4",DestroySelf())
ActionOverride("AuNo5",DestroySelf())
ActionOverride("AuFi1",DestroySelf())
ActionOverride("AuFi2",DestroySelf())
ActionOverride("AuFi3",DestroySelf())
ActionOverride("AuFi4",DestroySelf())
ActionOverride("ArFi41",DestroySelf())
ActionOverride("ArFi42",DestroySelf())
ActionOverride("ArFi43",DestroySelf())
ActionOverride("ArFi44",DestroySelf())
ActionOverride("ArFi45",DestroySelf())
ActionOverride("StaffM8",ForceSpell("Brue2",CLERIC_RESURRECTION))
Wait(8)
ActionOverride("Brue2",LeaveAreaLUA("ra4300","",[332.1004],8))
FadeFromColor([20.0],0)
Wait(1)
ActionOverride("StaffM8",DisplayStringHead(Myself,95165)) // Collect your equipment.
Wait(5)
UnhideGUI()
EndCutSceneMode()
Wait(15)
HideGUI()
StartCutSceneMode()
Wait(1)
FadeToColor([20.0],0)
Wait(1)
//////Delete next section of code
ActionOverride(Player1,MakeUnselectable(1))
ActionOverride(Player2,MakeUnselectable(1))
ActionOverride(Player3,MakeUnselectable(1))
ActionOverride(Player4,MakeUnselectable(1))
ActionOverride(Player5,MakeUnselectable(1))
ActionOverride(Player6,MakeUnselectable(1))
///Till here
ActionOverride("Brue2",LeaveAreaLUA("ra4300","",[166.631],11))
Wait(1)
FadeFromColor([20.0],0)
Wait(1)
UnhideGUI()
EndCutSceneMode()
SetGlobal("Registr","GLOBAL",0)
SetGlobal("Ardaeffects","GLOBAL",4)
SetGlobal("AbaBru","GLOBAL",32)
END

IF
//////The Next line defines which character its about.
Global("AbaBru","GLOBAL",34)
THEN
RESPONSE #100
SmallWait(1)
ClearAllActions()
HideGUI()
StartCutSceneMode()
Wait(1)
FadeToColor([20.0],0)
//////Delete next section of code
ActionOverride(Player1,MakeUnselectable(999999))
ActionOverride(Player2,MakeUnselectable(999999))
ActionOverride(Player3,MakeUnselectable(999999))
ActionOverride(Player4,MakeUnselectable(999999))
ActionOverride(Player5,MakeUnselectable(999999))
ActionOverride(Player6,MakeUnselectable(999999))
///Till here
Wait(1)
ActionOverride(Player1,LeaveAreaLUA("ra4300","",[1537.253],5))
ActionOverride(Player2,LeaveAreaLUA("ra4300","",[1386.75],2))
ActionOverride(Player3,LeaveAreaLUA("ra4300","",[1432.91],3))
ActionOverride(Player4,LeaveAreaLUA("ra4300","",[1532.211],4))
ActionOverride(Player5,LeaveAreaLUA("ra4300","",[1534.291],5))
ActionOverride(Player6,LeaveAreaLUA("ra4300","",[1438.405],6))
SmallWait(1)
ActionOverride("Brue2",LeaveAreaLUA("ra4300","",[1260.372],8))
CreateCreature("ArFi51",[1250.234],0) // Malwyn
CreateCreature("AuFi1",[1229.455],8) // Human Fighter
CreateCreature("AuPe5",[1136.63],14) // Audience
CreateCreature("AuFi3",[1102.81],13) // Fighter
CreateCreature("AuFi4",[1066.101],13) // Fighter
CreateCreature("AuFi2",[985.189],13) // Human Fighter
CreateCreature("AuNo3",[975.221],12) // Audience
CreateCreature("AuPe2",[977.251],12) // Audience
CreateCreature("AuPe1",[985.299],11) // Audience
CreateCreature("AuNo4",[1063.393],10) // Audience
CreateCreature("AuPe4",[1111.419],10) // Audience
CreateCreature("AuNo2",[1173.443],9) // Audience
CreateCreature("AuPe3",[1323.447],8) // Audience
CreateCreature("AuNo5",[1375.429],7) // Audience
MoveViewPoint([1260.372],INSTANT)
SmallWait(1)
ActionOverride(Player1,FaceObject("Brue2"))
ActionOverride(Player2,FaceObject("Brue2"))
ActionOverride(Player3,FaceObject("Brue2"))
ActionOverride(Player4,FaceObject("Brue2"))
ActionOverride(Player5,FaceObject("Brue2"))
ActionOverride(Player6,FaceObject("Brue2"))
SmallWait(1)
ActionOverride(Player1,EquipMostDamagingMelee())
ActionOverride(Player2,EquipMostDamagingMelee())
ActionOverride(Player3,EquipMostDamagingMelee())
ActionOverride(Player4,EquipMostDamagingMelee())
ActionOverride(Player5,EquipMostDamagingMelee())
ActionOverride(Player6,EquipMostDamagingMelee())
ActionOverride("Brue2",FaceObject("ArFi51"))
ActionOverride("StaffM9",FaceObject("Brue2"))
FadeFromColor([20.0],0)
Wait(1)
ActionOverride("StaffM9",DisplayStringHead(Myself,95188)) // Welcome, people! The first round is about to begin. Hold your breathes! The battles to find the ultimate fighter are going to start now!
Wait(8)
UnhideGUI()
EndCutSceneMode()
SetGlobal("AbaBru","GLOBAL",35)
END


For example this is a part of code for Bruenor "ababru" is bruenor. So u can try narrowing your search even more by searching for ababru/brue2 and deleting the unselectable lines of code at it.

So i searched for "abawulf" and deleted all the lines that said : actionoverride and made players unselectable. I did this for all portions of Wulfgar "If" sections of code which was about 800 lines of code searching or less (but very fast scrolling since u know what u r looking for) so it took me about 15 minutes to do it :S at least it works now perfectly cause I can select everyone in the party when Wulfgar has battles so at last arenas are challenging :)

Thank god every 1 thousand lines or so the character completely changes in the code so once i finished with Wulfgar and i saw line of code with Bruenor it was the end no more code had to be edited. ( so it was just like 800 lines in a row nothing more.

Hint to make it even more easier : search in the script code for :
ActionOverride(Player1,MakeUnselectable(1))
and
ActionOverride(Player1,MakeUnselectable(999999))
BUT only bother with code about the char u r interested in. ( which will be like 800 lines of code in a row only- roughly 15 minutes work)

PS1 : If u want to battle with the main char though in arena as fighter im not sure that my suggestion will help :( bummers.

PS2 : I know its a kinda sucky way to fix it but it worked for me and secondly i am by no means a programmer so this was just done by logic :P Feel free to post for an easier way ^^

#7 Hoppy

Hoppy

    Mage Hunter

  • Member
  • 2107 posts

Posted 04 August 2007 - 05:37 AM

PS1 : If u want to battle with the main char though in arena as fighter im not sure that my suggestion will help bummers.

PS2 : I know its a kinda sucky way to fix it but it worked for me and secondly i am by no means a programmer so this was just done by logic Feel free to post for an easier way ^^

I just tested it with PC as fighter and it worked for whoever pays or registers. I deleted all of those unselectable codes which should account for any fighter type NPC's. Good work Radagast!! You are officially a bug fixing ninja! :ph34r: . We should test it more with other characters to make sure. However, with all of those strings deleted, the rest of the party can attack. Simple just to turn off party AI. Good fix and simple workaround!! Maybe we can have someone look at that BCS if we have permission to upload here so that it can be finetuned and made a legitimate bug fix for others to download.
Great Job Radagast!
Hop
?May God defend me from my friends; I can defend myself from my enemies.? - Voltaire

"If you think that a size of the mod indicates an amount of bugs that it introduces and their severity you're totally wrong...
Try not to use next time a load of shitty "super-mega-improving-tweaking-revising" small mods that you have installed and try to meet Wulfgar once again."
- King Diamond


Posted Image The Definitive Guide to Trolls

"Finding food and a place to sleep is your own business. I imagine Paul the Cat should have some fun with you, too" - Potencius in The Darkest Day
"You have been warned, little bastard!" -Khelben to a young <CHARNAME>in Check the Bodies
There are those who will snivel, and offer nothing in return except criticism, meanwhile never lifting a finger to do other than to cut other peoples labor down simply for the fact that they lack the capability to put anything of their own together. -erebusant

#8 Kaylia

Kaylia
  • Member
  • 14 posts

Posted 29 January 2008 - 11:00 AM

Thanks for all the inputs !
I also managed to create my bcs file to override the problem.
Now it was the first time I used the infini engine and I can give some tips to noobie like me :

Don't do too much before saving and compiling, I wasted 1h30 on a out of control engine (every action was a java heap error, due to a previous
search crash that looked harmless at first)
You can compile many time and save many time.
(actually, I was also doing it, but there was no feeback that it was not successful. the save was generating a 0 byte file.)

No need for backup, the change goes to the override file (I got an empty script after the crash, and just when I was going to reinstall everything, I
realized that common sense fact...).
If something goes way wrong, restart from the original bcs file (delete the override file).

Before the crash, I patched all the makeunselectable, but after the crash I only patched wulf and the player.
You can find the player "abapla" is what you are looking for (Override player1).

Thanks again for the input, very valuable to do the arena !

#9 Azazello

Azazello

    The Anti-Spammer

  • Staff
  • 1912 posts

Posted 29 January 2008 - 04:13 PM

However, with all of those strings deleted, the rest of the party can attack. Simple just to turn off party AI.

I think AI can be turned off/on via scripting. You can add that to your changes.

#10 Hoppy

Hoppy

    Mage Hunter

  • Member
  • 2107 posts

Posted 31 January 2008 - 09:56 AM

Yep, turn the AI off so you have complete control to even change weapons or drink a potion. I went a bit further and assigned new move points for the other 5 and so they are not so close. The bigger problem I had was with the mage competition where the blue circles were back. Couldn't even move the mage to talk to the judge at the area where the mage is teleported. Then you have to move all over the place to beat the enemies.

Edited by Hoppy, 31 January 2008 - 10:00 AM.

?May God defend me from my friends; I can defend myself from my enemies.? - Voltaire

"If you think that a size of the mod indicates an amount of bugs that it introduces and their severity you're totally wrong...
Try not to use next time a load of shitty "super-mega-improving-tweaking-revising" small mods that you have installed and try to meet Wulfgar once again."
- King Diamond


Posted Image The Definitive Guide to Trolls

"Finding food and a place to sleep is your own business. I imagine Paul the Cat should have some fun with you, too" - Potencius in The Darkest Day
"You have been warned, little bastard!" -Khelben to a young <CHARNAME>in Check the Bodies
There are those who will snivel, and offer nothing in return except criticism, meanwhile never lifting a finger to do other than to cut other peoples labor down simply for the fact that they lack the capability to put anything of their own together. -erebusant