Coder Social home page Coder Social logo

Comments (12)

SomeTroglodyte avatar SomeTroglodyte commented on July 20, 2024 1

study enough JS

If you mean JS = JavaScript then - there's none in here. Not. a. single. line. Which is goooood.

Other than that, seems easy and why-not to me. Modder would have to do much more work in the Tileset part, but - hey - if they go down that route they should know how to handle TileSetConfigs. Syntax: leave attribute out. Effect: BaseTerrain stays put, Validator accepts... Can't see any untoward consequences off the top of my head.

from unciv.

SomeTroglodyte avatar SomeTroglodyte commented on July 20, 2024 1

Always read anything I write suspecting I'm not entirely serious. None of this really affects 42, so it's all good and to be taken lightly. "not a single line of jabbaskrip" was meant as a little joke for instance.

So - don't let me discourage you. kotlin is easy - low entry threshold as in, writing correctly working (but klunky and inefficient to the eyes of the expert) code is easy. It's also easy to write elegant and efficient code that a beginner can't possibly understand. Finding the middle ground is what's hardest about it... And in these respects it's waaaaaay better than JS. But then it's a compiled language, and not a kludge tweaked and tweaked again...

from unciv.

SomeTroglodyte avatar SomeTroglodyte commented on July 20, 2024

Not. a. single. line. Which is goooood.

Oops, forgot one or three files...

from unciv.

SomeTroglodyte avatar SomeTroglodyte commented on July 20, 2024

Oh my, that was me in #10355 that made it mandatory, everything else is already set for it being optional πŸ™ˆ

from unciv.

SomeTroglodyte avatar SomeTroglodyte commented on July 20, 2024

... not quite everything ....

from unciv.

SomeTroglodyte avatar SomeTroglodyte commented on July 20, 2024

Mod excerpt:

	{
		"name": "Aggtelek",
		"type": "NaturalWonder",
		"occursOn": ["Hill","Mountain"],
		"uniques": [
			"Must be adjacent to [5] to [6] [Land] tiles",
			"Must be adjacent to [2] to [5] [Hill] tiles",
			"Must be adjacent to [0] [Desert] tiles",
			"Must be adjacent to [0] [Tundra] tiles",
			"Must be adjacent to [0] [Snow] tiles",
			"Neighboring tiles except [Water] will convert to [Hill] <with [50]% chance>",
			"Neighboring tiles except [Water] will convert to [Forest] <with [50]% chance>",
			"Neighboring tiles except [Water] will convert to [Mountain] <with [20]% chance>",
			(...)

Result:
image

But I'm still not 100% sure about some of the code behind that.

from unciv.

denismattos avatar denismattos commented on July 20, 2024

If you mean JS = JavaScript then - there's none in here. Not. a. single. line. Which is goooood.

My bad.
I'm new to programming and thought the usage of .json implied JS.
Your comment prompted me to look it up and I learned it's an agnostic format and the game's actually mostly written in Kotlin.

from unciv.

denismattos avatar denismattos commented on July 20, 2024

Other than that, seems easy and why-not to me. Modder would have to do much more work in the Tileset part, but - hey - if they go down that route they should know how to handle TileSetConfigs. Syntax: leave attribute out. Effect: BaseTerrain stays put, Validator accepts... Can't see any untoward consequences off the top of my head.

Glad to read that. πŸ™‚
I don't presume to understand how easily something could be implemented, but it seems my intuition was correct.

Sad part is: I'm not sure when – if ever – I'm going to be able to study Kotlin (I'm a beginner and I'm already too old and out-of-time to be diverging my efforts away from what I need to study.), so, apparently, I won't be able to collaborate, after all. πŸ˜•

from unciv.

denismattos avatar denismattos commented on July 20, 2024

Oh my, that was me in #10355 that made it mandatory, everything else is already set for it being optional πŸ™ˆ

I thought I'd read your name before, somewhere. πŸ˜„

Thanks for your attention and – in advance, to you and/or other devs – for fixing this, whenever it's possible, in the future. πŸ™πŸ»
I've already implemented a provisory solution, in the meantime.

from unciv.

SomeTroglodyte avatar SomeTroglodyte commented on July 20, 2024

because the game changed

No it didn't. It just went from not noticing game-breaking and potentially crashing mistakes until too late - to detecting them.

from unciv.

denismattos avatar denismattos commented on July 20, 2024

went from not noticing game-breaking and potentially crashing mistakes until too late - to detecting them

Yes, I read the release notes.
I even said above that I understand the importance of the ruleset validation.

I'd still argue that's a change in the game: implementing a stricter check for an attribute.

But I'll amend the README to be more clear.

from unciv.

denismattos avatar denismattos commented on July 20, 2024

But then it's a compiled language, and not a kludge tweaked and tweaked again...

I'm a beginner and even I know how much of a clusterfuck JS is, today. πŸ˜…

from unciv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.