SLBotBrain.uc - Class for bots using jets.

Development assistance and tutorials here.
User avatar
SC]-[WARTZ_{HoF}
Site Admin
Posts: 401
Joined: Wed May 10, 2017 7:08 am

SLBotBrain.uc - Class for bots using jets.

Post by SC]-[WARTZ_{HoF} » Mon Mar 30, 2020 7:39 pm

This is the class for for bots using jets I believe. I do get some accessed nulls from this class even on client side tests. I'm no expert on accessed nones but if someone could see the obvious issues feel free to jump in.


User avatar
Kelly
Posts: 179
Joined: Fri Sep 29, 2017 1:54 pm
Location: Coos Bay Oregon

Re: SLBotBrain.uc - Class for bots using jets.

Post by Kelly » Tue Mar 31, 2020 2:47 am

Post your access nones, I'll help you clean them up.
I don’t wanna give the end away
but we’re gonna die one day

User avatar
SC]-[WARTZ_{HoF}
Site Admin
Posts: 401
Joined: Wed May 10, 2017 7:08 am

Re: SLBotBrain.uc - Class for bots using jets.

Post by SC]-[WARTZ_{HoF} » Tue Mar 31, 2020 3:42 am

Here is the one I found for this class.

Code: Select all

ScriptWarning: SLBotBrain CTF-Chronic_Zen[S3TC].SLBotBrain0 (Function RX6T5_01.SLBotBrain.gunnerBehavior:00D8) Accessed None

Nelsona
Posts: 1246
Joined: Sat Sep 30, 2017 5:03 am

Re: SLBotBrain.uc - Class for bots using jets.

Post by Nelsona » Tue Mar 31, 2020 5:39 am

After line "GoToState(GunnerEject)" execution should be stopped, nothing moves to state until function is completed. If Sl == NONE all later calls are done to a NULL thing.

Second problem: Mod is referring to bCanFly, on a way is correct, but I must ask about Physics and... In which map is/was done some testing ? I'm asking because UT never mapped a R_Fly flag in reachspecs, unless mapper can use XC_EditorAdds or... spoofing this flag at least with R_Swim. And... nodes I believe must have a specialhandling like JumpSpot for launching flight when node it's not reachable using a ground unit physics. Does any mapper knows what I mean ?
Not often maintained
My UT Mapping works...
Learn the rules like a pro, so you can break them like an artist.
- Pablo Picasso -

User avatar
SC]-[WARTZ_{HoF}
Site Admin
Posts: 401
Joined: Wed May 10, 2017 7:08 am

Re: SLBotBrain.uc - Class for bots using jets.

Post by SC]-[WARTZ_{HoF} » Tue Mar 31, 2020 5:45 pm

I suppose if this is gonna work will need to modify maps. Gonna be a hug task I'm sure. Maybe Diego is up for this since he is more active here with mapping.

Nelsona
Posts: 1246
Joined: Sat Sep 30, 2017 5:03 am

Re: SLBotBrain.uc - Class for bots using jets.

Post by Nelsona » Tue Mar 31, 2020 6:29 pm

If you want to fly and it's about an XC server, at least we can use some generic connector mutator for adding specified flag - it would be easier because I have one which works in big parts.

What does that means native Fly Support ?
We are talking about what data is being stored in reachSpec structures from map - these are not very visible unless you can check them with MapGarbage option bShowSpecs for some selected node.
The next move is to light you about these R_FLY flags which plain Editor will never do. Here I did a successful experiment in a MH map addressing Monsters able to fly and track players using PATHS as Bot does but aerial paths not ground paths.
MH-FL3test1.7z
(40.08 KiB) Downloaded 70 times
How does it looks like:
FlyTest1.png
FlyTest1.png (691.5 KiB) Viewed 2328 times
What do we have here:
First of all XC_EditorAdds builder shows in COLORS these paths. Here Red means R_FLY flag which these nodes have.
XC_EditorAdds.PNG
XC_EditorAdds.PNG (110.69 KiB) Viewed 2328 times
Open map in Editor for having an image about what is there. Here are used bigger nodes - more tall more exactly which are not connected in plain Editor, do a test and see how paths are screwed up if you rebuild them.
And let me show you a report:
SPECS.png
SPECS.png (634.5 KiB) Viewed 2328 times
If you are ready to rock you'll need these connections, or else we need a mapping convention for Jets using some specific nodes and mapped Flags in Run-Time ONLY in XC servers. It's up on you guys how do you want this...

The main note:
If you ask how do I know if these are working it's simple in a way. You can use RememberSpot on one side and ShowPath in other. If you walk normally as a ground unit you'll won't have any result. But things are changed if you will input some commands in console before testing:
Set PlayerPawn bCanFly 1
Fly

The command ShowPath should spawn navigation beacon if network is usable by flying.
Perhaps A video for you would clarify these - but I need first to prepare map and removing MH things which I added there.
Not often maintained
My UT Mapping works...
Learn the rules like a pro, so you can break them like an artist.
- Pablo Picasso -

User avatar
SC]-[WARTZ_{HoF}
Site Admin
Posts: 401
Joined: Wed May 10, 2017 7:08 am

Re: SLBotBrain.uc - Class for bots using jets.

Post by SC]-[WARTZ_{HoF} » Tue Mar 31, 2020 8:06 pm

Nelsona wrote:
Tue Mar 31, 2020 6:29 pm
If you want to fly and it's about an XC server, at least we can use some generic connector mutator for adding specified flag - it would be easier because I have one which works in big parts.
I like this idea better than having to edit every map. I do know however alot of RX maps made back in the day did not have pathing for AI. That being said we will most likely be editing maps anyways.

Nelsona
Posts: 1246
Joined: Sat Sep 30, 2017 5:03 am

Re: SLBotBrain.uc - Class for bots using jets.

Post by Nelsona » Tue Mar 31, 2020 9:01 pm

For a simple method we are preparing a small package to be imported in MyLevel with custom nodes - taller than original - similar to QueenDest if not bigger. For rebuilding paths would be needed XC_EditorAdds or else nothing happens properly.

You can point me an old RX map which you would like to work with for A.I., I'll map aerial paths and I'll make sure to be full connected Flag to Flag. Diego can figure the "HowTo" and you will have needed stuff.
For future we can have them even mobile, preventing Bot to fly through the same spot, deviating a bit randomly. But first we have to do basics.
Not often maintained
My UT Mapping works...
Learn the rules like a pro, so you can break them like an artist.
- Pablo Picasso -

User avatar
SC]-[WARTZ_{HoF}
Site Admin
Posts: 401
Joined: Wed May 10, 2017 7:08 am

Re: SLBotBrain.uc - Class for bots using jets.

Post by SC]-[WARTZ_{HoF} » Tue Mar 31, 2020 9:41 pm

ChronicZen is a classic RX map. There are several versions on the server so just pick one.

Nelsona
Posts: 1246
Joined: Sat Sep 30, 2017 5:03 am

Re: SLBotBrain.uc - Class for bots using jets.

Post by Nelsona » Tue Mar 31, 2020 9:53 pm

Okay, I'll get it. For the moment I've done this one. Take a look here:
Now_Pidgeons.PNG
Now_Pidgeons.PNG (691.43 KiB) Viewed 2310 times
I even excepted paths through those mover walls. I go to do some stunts as Flier Pawn.
Not often maintained
My UT Mapping works...
Learn the rules like a pro, so you can break them like an artist.
- Pablo Picasso -

Post Reply