Closed 3quarterscolon closed 2 years ago
It's a tad bit more complex than I thought.
Now when I open the map I get this error:
"cmd.get_type() != Variant::STRING" is true.
what does that even mean???
Dozens of attempts later, and I still have no idea how to get this to work properly. I can get tantalizingly close, but for some reason the last step always results in it failing.
I guess I'll try again tomorrow.
Here's the closest I can get:
(note: right now I'm just debugging it to find a function to get the distance from the "equator". in the final version, that would be used to shade the biomes.)
Likely some dust code. That error means that there was supposed to be a command there but it didn't consist of text.
On Sat, May 28, 2022, 10:00 PM 3quarterscolon @.***> wrote:
I guess I'll try again tomorrow.
Here's the closest I can get: [image: Screen Shot 2022-05-28 at 9 58 57 PM] https://user-images.githubusercontent.com/94267030/170848887-a70bce3f-697b-47c0-93dc-2d642edc669e.png
(note: right now I'm just debugging it to find a function to get the distance from the "equator". in the final version, that would be used to shade the biomes.)
— Reply to this email directly, view it on GitHub https://github.com/TheMowgliMan/Country-Clash/issues/24#issuecomment-1140357789, or unsubscribe https://github.com/notifications/unsubscribe-auth/AW7ZWTNN7ZFYVUQY3HXB4YDVMLFTLANCNFSM5XG3CXOQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Likely some dust code. That error means that there was supposed to be a command there but it didn't consist of text. …
I solved it after I posted that comment. I think it was caused by accidental division by zero.
Hmmm... It would say division by zero error. I suspect you accidentally tried to call something like "42a(3)", or that general structure.
On Sun, May 29, 2022, 1:21 PM 3quarterscolon @.***> wrote:
Likely some dust code. That error means that there was supposed to be a command there but it didn't consist of text. … <#m-5128031470359343765>
I solved it after I posted that comment. I think it was caused by accidental division by zero.
— Reply to this email directly, view it on GitHub https://github.com/TheMowgliMan/Country-Clash/issues/24#issuecomment-1140490944, or unsubscribe https://github.com/notifications/unsubscribe-auth/AW7ZWTPB2THVPTATNV77O6DVMORSBANCNFSM5XG3CXOQ . You are receiving this because you commented.Message ID: @.***>
Hmmm... It would say division by zero error. I suspect you accidentally tried to call something like "42a(3)", or that general structure. …
I don’t know what that is, but I don’t think that’s what I did.
Still not working at all.
NOTHING IS WORKING AAAAAAAA I CAN'T EVEN GET AN IF FUNCTION TO DO ANYTHING WHAT IS HAPPENING
now it's slightly less crazy in terms of color
I see this as a total win
one step forward, 300 steps back.
I- what?
The return of shading
So I've come full-circle and I still haven't been able to do the thing I wanted to in the first place.
...and we're back to this.
And back to being shadingless. I'm done for tonight, maybe tomorrow?
Wow. there is a value that is added to for shading, add to that value in each: abs((y - (map_size_square / 2)) / 3) . You may need to clamp it. I'll see if I can get it working.
On Sun, May 29, 2022, 9:29 PM 3quarterscolon @.***> wrote:
And back to being shadingless. I'm done for tonight, maybe tomorrow?
— Reply to this email directly, view it on GitHub https://github.com/TheMowgliMan/Country-Clash/issues/24#issuecomment-1140585697, or unsubscribe https://github.com/notifications/unsubscribe-auth/AW7ZWTMGBHSVWKZMC7S45GLVMQKW3ANCNFSM5XG3CXOQ . You are receiving this because you commented.Message ID: @.***>
You know what? I bet it's value overflow. I'll see if clamping it fixes it.
On Tue, May 31, 2022, 5:30 PM NJ K @.***> wrote:
Wow. there is a value that is added to for shading, add to that value in each: abs((y - (map_size_square / 2)) / 3) . You may need to clamp it. I'll see if I can get it working.
On Sun, May 29, 2022, 9:29 PM 3quarterscolon @.***> wrote:
And back to being shadingless. I'm done for tonight, maybe tomorrow?
— Reply to this email directly, view it on GitHub https://github.com/TheMowgliMan/Country-Clash/issues/24#issuecomment-1140585697, or unsubscribe https://github.com/notifications/unsubscribe-auth/AW7ZWTMGBHSVWKZMC7S45GLVMQKW3ANCNFSM5XG3CXOQ . You are receiving this because you commented.Message ID: @.***>
Done! I added polar regions for good measure:
Wow. there is a value that is added to for shading, add to that value in each: abs((y - (map_size_square / 2)) / 3) . You may need to clamp it. I'll see if I can get it working. …
I tried clamping it, I guess I didn’t do it correctly.
Lighter colors further north and south and darker colors closer to the equator to make it look like it’s colder near the poles.
This isn’t necessary or anything, but I think it might be a nice substitute for actually calculating climate. Shouldn’t be too hard to implement.