Skip to content
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

tf_logic_robot_destruction custom .res file is not packed. #244

Open
Radial36 opened this issue Aug 20, 2024 · 7 comments
Open

tf_logic_robot_destruction custom .res file is not packed. #244

Radial36 opened this issue Aug 20, 2024 · 7 comments
Labels

Comments

@Radial36
Copy link

Compile Pal v028.4

Describe the bug
if a tf_logic_robot_destruction is given a custom .res file like tf_logic_player_destruction, it is not packed automatically.

Steps to reproduce
1: Create a custom fgd that defines this functionality. Or use BAMF. It seemingly exists in code but not in the default tf.fgd.
2: Add a custom .res file as you would for player destruction, and define it in the RD entity.
3: Note that while it does function, Compilepal doesn't notice the included .res file and doesn't pack it(because frankly why would you expect anyone to discover this functionality)

Expected behavior
It parses a custom .res file for tf_logic_robot_destruction, and packs it into the map just like tf_logic_player_destruction.

Debug.log
debug.log

Additional context
Yeah, I'm frankly just as bewildered this functionality even exists. I can only assume it was added by Valve when they were testing out adding Player Destruction to the game proper. I only even noticed this existed by testing out some jank gamemode logic that requires tf_logic_robot_destruction instead of tf_logic_player_destruction.

@Radial36 Radial36 added the bug label Aug 20, 2024
@Exactol
Copy link
Collaborator

Exactol commented Aug 25, 2024

What is the entity key name for the .res file?

@statecouncil
Copy link

statecouncil commented Aug 28, 2024

What is the entity key name for the .res file?

It's res_file and looks like this in the BAMF FGD:
image

@Exactol
Copy link
Collaborator

Exactol commented Sep 2, 2024

@Radial36
Copy link
Author

Radial36 commented Sep 3, 2024

Can you try this build?
I unfortunately cannot get this build to work? The process in task manager either stops almost instantly or just hangs and never opens.
image

@Radial36
Copy link
Author

Radial36 commented Sep 3, 2024

Got a crash log, but seems unrelated to this. Looks like the build is looking in the wrong directories?
2024-09-03T16-49-26.txt

@Radial36
Copy link
Author

Radial36 commented Sep 3, 2024

Got it working properly, and I can conform that not only is it unable to find .res files listed in tf_logic_robot_destruction, but it seems other packing functionality has been broken, such as if IncludeScript is used.

Just to check, is the posted build supposed to be 27.22? This seems to be a significantly older version rather than a version of 0.28.4

@Exactol
Copy link
Collaborator

Exactol commented Sep 14, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants