-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat(code): Custom outfit/ship prices and sell type #122
base: experimental
Are you sure you want to change the base?
feat(code): Custom outfit/ship prices and sell type #122
Conversation
This is a squash-merge to a Delta branch of the pull request endless-sky#6404 Co-authored-by: Hurleveur <[email protected]> Co-authored-by: Hurleveur <[email protected]> Co-authored-by: Ben Hauch <[email protected]> Co-authored-by: tibetiroka <[email protected]> Co-authored-by: warp-core <[email protected]> Co-authored-by: Amazinite <[email protected]> Co-authored-by: EjoThims <[email protected]>
Awesome! Thanks for taking this on! |
I'm not sure what the problem is at the moment, and there isn't anything by GitHub actions in the files right now.
Checks should pass now.
Looks like ship support may be harder than I thought it would be. |
Checks are failing on one problem and don't seem to be giving an error message.
Does anybody have ideas on how to fix the failing checks? |
I'm going to take a look at it, but my coding skill is weak. Might need to get a better coder to take a look at offer advice. |
OK, Visual Studio provides a bit more detail: And a list of places that it is referenced by (CustomSaleManager 38, 147, 53) (referenced 5 more times beyond that, but it only lists those) Followed by the similar error:
in CustomSaleManager.cpp L65, 154, 80; and referenced 5 more times. I hope this is helpful info, anyway. Doing a search for the error message turned up this stackoverflow article: |
That gave me a really random idea, so we'll see if it's that. |
This whole section will need to be moved up... if it works.
@Hurleveur I know you're busy and can't do a deep dive on code or anything, but if you could take a look and offer a few pointers or insight sometime, it'd be much appreciated. edit: TheGiraffe3: Don't hold up your work waiting for Hurleveur, as there's really no timeline as to when they may be able to provide some advice. It may be weeks or months. But they're probably the most familiar with how it works, so hopefully someday they'll be able to comment. edit: I just downloaded your recent changes and ran it through VS's build process, and it's turning up the exact same errors as before. I'm not sure why, but something in my head is nagging me thinking that those things being private is fine, but there needs to be something public but internal to those sections that calls them and makes their stuff available to be called. |
There's not really an easy way to fix it, I could explain but someone would need a good setup to use for debugging along with understanding of what's going on in order to resolve it. |
I think for the moment, I'm more concerned about the build failures than the integration tests. Both are important, I know; but picking a place to start, the build failures seems the logical place. |
|
You only need to make |
Co-authored-by: warp-core <[email protected]>
Hmmm, the one error that generates comes from here:
|
Yet it had worked before... |
Yes, Github does things in strange ways, sometimes... In any case, I'm happy to see this moving along again. Looking forward to having it. |
Not sure why Ubuntu thought it was fine, though.
How's it working now? |
Outfit sales are working perfectly. Ship sales, though, have problems, presumably because they're not allowed to be in stock the way outfits are. So essentially right now this PR does the exact same thing as 6404, with some extra code that doesn't work. |
OK, thanks for the update! While I'd certainly like both outfits and ships, it doesn't have to be all together. So I'd be inclined to say if ships are being problematic while outfits are working perfectly, then strip out the ships part and work on that in a new PR, and the outfit section here can be merged. That being said, could you expand on "ship stock" a bit? Do you mean having limited numbers of ships, like we do with outfits temporarily if we sell some outfits that aren't normally available somewhere? |
Yes. One of the main problems, if I remember correctly, was getting the Cloaking Device off the Arfecta and keeping both of them. |
I dont know if it's a good idea to do both at first, you'd have many more potential bugs |
Ok. Ship stock seems like something that would be useful and good basically all the time except for that one ship. So, nice to have, but not essential. Idea: how hard do you think it might be too create exceptions? Basically a ship attribute that specifies that it can't be sold for resale, only for scrap. (As in the ship when sold is gone forever, leaving outfits.) |
Since the ship side seems to have a few problems and challenges, could you strip out the ship side and have this just be outfits please? |
Enhancement
Summary
A re-PR to Delta of endless-sky#6404.
See the original PR for more details.
Examples
Testing Done
None so far, though the original PR was tested throughly.