-
Notifications
You must be signed in to change notification settings - Fork 348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do you work with DotNetGenericList? #40
Comments
Hey. I haven't really worked on this project in a while, but I'd be glad to help. I had the same problem when I was trying to port this project to DMC5, but never committed the fix. I've committed the change that should fix this. Let me know if there's anything else you need help with. |
Thanks any improvements to the obj explorer is helpful. What I meant was I am developing my own mod https://github.com/hntd187/RE2-Mod-Framework/blob/master/src/Speedrun.cpp and I was trying to find enemy health but actually accessing this seems problematic and crashes a lot. I get it similar to this auto enemy_manager = globals.get<RopewayEnemyManager>("app.ropeway.EnemyManager"); but then reading it doesn't work. I was trying to read the |
Here's a little example of how to get all the enemies' HP.
|
Interesting, I was doing something very similar to this, lemme try this and get back to you, thanks a lot for the help |
Okay that works perfectly, I wonder what I was doing wrong here, but I think I wasn't traversing to the hit point controller correctly so thanks that helps a lot. |
Hey Praydog,
Been working a lot with the framework and it all looks great. I'm trying to see the HP of the current enemies around me, but I can't seem to figure out the structure of the EnemyManager in
app.ropeway.EnemyManager
the enemy list is a DotNetGenericList, but I keep crashing RE2 trying to get some information about the elements. I can iterate over the data, and get their respective types, but it seems like it doesn't like trying to actually do anything with theapp.ropeway.EnemyManager.RegisterEnemyInfo
it just bombs. I can't find any other mods that work with the generic list and I don't know if you're still working on this project, but have you had any success working with this?The text was updated successfully, but these errors were encountered: