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

Fulfilling Dynamic Recipe #6

Open
jamtat opened this issue Jul 4, 2015 · 4 comments
Open

Fulfilling Dynamic Recipe #6

jamtat opened this issue Jul 4, 2015 · 4 comments

Comments

@jamtat
Copy link

jamtat commented Jul 4, 2015

It would be great to have some way of crafting up Chemistry Kits (dragging 200 items is a huge pain...) and Fabricators automatically. I've had a play around with sending messages of various formats to the GC using the Language.FulfillDynamicRecipeComponent msg ID but so far haven't had any luck and have no idea where to start looking to find the correct structure.

@DoctorMcKay
Copy link
Owner

message CMsgRecipeComponent {
    optional uint64 subject_item_id = 1;
    optional uint64 attribute_index = 2;
}

message CMsgFulfillDynamicRecipeComponent {
    optional uint64 tool_item_id = 1;
    repeated .CMsgRecipeComponent consumption_components = 2;
}

I'll see about adding support, I agree that this would be nice to have. I'm assuming that tool_item_id is the ID of the chemistry set/fabricator, subject_item_id is the ID of an item which you want to apply to it, and attribute_index is the defindex (maybe?) of the input attribute which you're trying to fulfill.

I'll run some NetHook tests later today if possible.

@jamtat
Copy link
Author

jamtat commented Jul 4, 2015

Thank you so much! I've got it working and will send a pull request

@peymil
Copy link

peymil commented Apr 5, 2023

If someone can provide me a way to parse value_bytes I can implement this feature

@peymil
Copy link

peymil commented Apr 5, 2023

I figured it out. Incoming buffer is CSOEconItem.

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

No branches or pull requests

3 participants