Skip to content

Groundwork for Skill Trees#990

Open
NocTempre wants to merge 6 commits intorichardwilkes:masterfrom
NocTempre:master
Open

Groundwork for Skill Trees#990
NocTempre wants to merge 6 commits intorichardwilkes:masterfrom
NocTempre:master

Conversation

@NocTempre
Copy link

Functionality currently limited to allowing default chaining with sheet setting selected.

e := EntityFromNode(s)
level := def.SkillLevel(e, s.Replacements, true, excludes, !s.IsTechnique())
if def.SkillBased() {
level := def.SkillLevel(e, s.Replacements, !e.SheetSettings.UseSkillTrees, excludes, !s.IsTechnique())
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can't assume e has a non-nil value here

level := def.SkillLevel(e, s.Replacements, true, excludes, !s.IsTechnique())
if def.SkillBased() {
level := def.SkillLevel(e, s.Replacements, !e.SheetSettings.UseSkillTrees, excludes, !s.IsTechnique())
if def.SkillBased() && e != nil && e.SheetSettings.UseSkillTrees {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The old code did not skip this computation if there was no entity, so this seems wrong again.

SOMETHING=1
;;
--custom | -c)
--win | -w)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still not grasping why this is here. I build for Windows all the time and this is not needed. Specifically, the -s option disables symbols in the output and the -w option disables DWARF generation. Both of those should only be on the command line when building for a release. By setting them, you're making debugging harder for yourself.

If you're doing this because of some oddity in your particular setup (I believe you were the one having tons of difficulty compiling on Windows for some reason), it's unclear why this would help. It shouldn't have any effect with regards to that... and if it does, it just indicates there is something fundamentally wrong in your setup.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hard to say, I'm very new to GO. I assumed the -w was a windows flag. I tried just -s and just -w and either and both was ok. Neither and it can't launch as an .exe for me.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ran into this myself after updating one of my machines to Windows 11 (previously, I had only ever built on a Windows 10 or earlier machine). Unclear why that would make a difference, or if there is something else that changed compared to my older machine that is the actual issue and not Windows 11 itself.

Regardless, one of the recent changes was to the build.sh file to get around this anomaly.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants