#TrueGRF - NewGRFs made easy - v2 released

381 messages Β· Page 1 of 1 (latest)

edgy rampart
#

Still waiting for something to happen.

manic isle
#

Sounds like you are watching paint dry? Not sure what to make of your comment πŸ™‚

manic isle
#

if there is anything specific you are waiting for, let me know πŸ™‚

edgy rampart
#

Return FIRS temperate/artic/tropic as template.

restive citrus
#

Do we miss some smilies here? πŸ™‚

#

Let’s be happy πŸ˜‰

pastel thistle
#

Would it be possible to make new vehicles with truegrf in the future?

manic isle
#

if I ever gain some time on my hands, yes

pastel thistle
#

Awesome!

#

Have lots of ideas for new vehicles

manic isle
#

will be a long long time

#

as time is my most scares resource atm

rustic laurel
#

Yay for svelte

smoky estuary
#

?

sonic ice
#

NewObjects functionality?

still obsidian
#

question: for making a town name grf is there anyway to like, upload an excel or do I need to write every single town name?

manic isle
#

For now, the latter. But some quality of life additions wouldn't hurt πŸ™‚

still obsidian
#

yeah, thanks anyway

still obsidian
#

other question: if I modify the code in github how can I also update the list in the site?

manic isle
#

Reload the site should do the trick

#

It should fetch the latest from github

still obsidian
#

okok

still obsidian
# manic isle Reload the site should do the trick

don't know why but it doesn't update ///._.

if you are anyone else can see if I did anything wrong it would be very appreciated
https://github.com/kamikazepigs/italian-town-names/blob/main/townnames/italian.yaml

even knowing how to convert the github files into a grf would be enough

GitHub

A new TrueGRF project. Contribute to kamikazepigs/italian-town-names development by creating an account on GitHub.

manic isle
#

You can't have more than 256 entries in a single set currently

#

Once upon a day I hope to fix that, but currently that is not supported

still obsidian
#

oof

#

any way of circumventing the limit?

manic isle
#

Chaining sets

#

And setting the weights accordingly

still obsidian
#

okok, just to ask, how do sets work?

manic isle
#

Next to "names" is an (i) explaining how to reference sets

manic isle
#

It is worth mentioning that TrueGRF is meant to give an easy-to-use interface around grfs; it is not within the intent of the tool to modify the yaml files directly. Especially not for a town name grf with this many entries. TrueGRF doesn't really valid input (yet), as it assumes it wrote the files. So expect trouble in this journey, as you are not using the tool within its intent πŸ˜‰ it might be easier to learn NML honestly. But don't let this remark stop you πŸ™‚

#

Just more a: be aware of πŸ™‚

still obsidian
#

sure, thanks a lot

#

as for learning NML, I tried, I really did, but I can't understand a single word of the wiki tbh

manic isle
#

Hahaha, I know that pain πŸ˜„

#

I hope I get more time soon to mature TrueGRF YAML a bit more ... meh, time .. such a valuable resource

night gull
#

sorry if this is a stupid question but is it possible to use a newgrf as a base that isn't on the list of 4 that show up when you open the thing

manic isle
night gull
#

i w as thinking about trying to base something off one of the other FIRS economies than steel town (specifically arctic basic)

manic isle
#

Those specifically I do want to make available, but that won't happen any time soon, sorry 😦

night gull
#

ah
oke

night gull
#

why does it seem to be impossible to set express+refrigerated

manic isle
#

some combinations make no sense; so TrueGRF prevents you from making those combinations

#

I got told which make sense, and which don't

#

I gave up understanding it πŸ˜›

night gull
#

lol
it i s kinda annoying sometimes tho
when your trying to replicate a combination from an existing industry set but you can't

manic isle
#

yeah, but it does make better GRFs by not allowing it

#

other GRFs don't always handle certain combinations all that well

#

TrueGRF is heavily opinionated, if you haven't noticed yet πŸ˜‰ It doesn't allow many things .. just so it is easier to create GRFs, and higher odds of it being compatible with train-sets etc

#

via NML and NFO you can do tons more of things πŸ˜„

night gull
#

e
i assume this shouldn't happen when using a template then (?)

manic isle
#

nope πŸ™‚

prisma thistle
#

where is downloading it?

restive citrus
#

@manic isle might want to pin that and/or make it the topic πŸ™‚

manic isle
#

seems I cannot pin messages; and one would think Discord makes it easier to read the initial post of a thread, which holds untrue; shrug

restive citrus
#

emoji

foggy reef
#

when is trains going to be added to TrueGrf

foggy reef
#

and could you allow commonly used cargo to the list of selectable cargo in the cargo tab

barren roost
#

How can i remove a specific cargo from being accepted by a industry?

hoary bluff
#

You can't

#

Whoops I thought this was #openttd

#

It is possible but I don't remember how

manic isle
manic isle
foggy reef
gloomy wagon
#

anything for objects?

manic isle
#

Just to showcase how it looks.

#

TrueGRF - NewGRFs made easy - v2 released

zinc bramble
#

how do you add tiles

#

or modify them

#

@manic isle

manic isle
#

Click on the plus to add new, or on the edit icon to edit them (hover over tiles)

#

The sprites you cannot modify yet via TrueGRF, hard to design a good UI for that

#

But you can drag new sprites in the tile editor to update them

zinc bramble
#

ah ok thx

#

i hope I can make sprites on the site in the later updates

#

its hard for me to scale things

manic isle
#

Yeah, I am looking how that can be done :)

#

But it is difficult ...

manic isle
#

if you find anything else you think could help building you an industry NewGRF @zinc bramble , feel free to yell πŸ˜„ Would love some feedback on what to do better, what works, and what doesn't πŸ™‚

zinc bramble
#

πŸ‘

timber egret
#

πŸ’–

manic isle
#

I just pushed v2.1, which includes a sprite editor for industry tiles!
It is still a bit rough, but at least you can now actually do everything from within TrueGRF πŸ˜„ But for sure it could use a better sprite editor, as something like zooming would really help out here. Anyway, let me know what you think!

#

Showcase of the new sprite editor

zinc bramble
#

its nice but can you make and undo, redo button, brush size, and paint bucket tools

clear hearth
zinc bramble
#

still tho its a cool update

manic isle
viral obsidian
#

are you planning to make it in an executable app?

manic isle
#

It is! Just in the form of a webpage ;)

#

One could slap electron around it, but not sure what the use case would be honestly :)

#

It needs an active connection to GitHub, so you do need to be online

viral obsidian
#

ah i see

edgy rampart
#

Is there an option for users to upload an image?

manic isle
#

Yup. The small text below the editor tells you how. Either drag and drop the image, or copy/paste it.

#

(Onto the sprite editor)

zinc bramble
#

I hope I can make callbacks without codes

#

like just choose what callback you want and enter the values

manic isle
#

for now only the default OpenTTD ones πŸ™‚

#

but yeah, I do plan to make that a bit more templated

#

but that will take a while to get to that πŸ™‚

zinc bramble
#

im very new to newgrf making so ye

manic isle
#

so leave callbacks empty and enjoy default OpenTTD behaviour πŸ˜„

zinc bramble
#

the problem is the primary industry

#

it doesnt produce anything

manic isle
#

owh, ofc, as you cannot set the multipliers without writing a custom callback

#

hmm .. that is not completely intended

zinc bramble
#

where do I learn callbacks

#

the openttd website doesnt give me any example code

manic isle
#

no, just the language has been documented. The callbacks itself are documented in the specs, which is not an easy read

#

hmm .. is there an easy fix here, I wonder .. let me see ..

zinc bramble
#

and why do towns accept every one of my cargo

manic isle
#

most likely as you didn't define a PASS cargo

#

OpenTTD doesn't fancy not having a few of its defaults cargo

#

and if they are missing, it starts to act weird. I still wonder if I should just make certain cargoes mandatory, or see if OpenTTD needs adjustments

#

I think the latter will not yield great success πŸ˜„

#

anyway, for the production, let me think about that for a bit, will get back to that a bit later .. I have some ideas, but I have to check if they are viable before I put you on the wrong track πŸ˜„

zinc bramble
#

πŸ‘

manic isle
#

First I am creating this new feature ... just because I got a bit tired of industries πŸ˜›

hoary bluff
#

Town names?

manic isle
#

yup

zinc bramble
#

this web can does autosave right?

manic isle
#

every time you leave an item, it saves the information to GitHub. As long as you don't get a red popup, that should have worked just fine πŸ™‚

#

I did not yet implement it doesn't allow you to close the browser till it is actually saved btw .. that is hard 😦

#

you can click the link in the top right to see what it actually stores on GitHub .. switch to the dev branch to see what it is doing

zinc bramble
#

wdym leave an item

manic isle
#

when you click Testing, or go to Project, or click any other industry/cargo

#

when you no longer see the industry/cargo you are working on, it is being saved, basically

zinc bramble
#

ah ok

#

why are my colors flashing

manic isle
#

some colours of the palette are animated colours

#

sounds like a good improvement, to give this information in TrueGRF πŸ™‚

#

will put it on the list!

zinc bramble
#

wait

#

these graphics on the template are free to use for uploading my own grf right?

manic isle
#

the FIRS Steeltown you mean?

#

those graphics are licensed under GPLv2; so you can only use those if you license under GPLv2 too

zinc bramble
#

how do I change my license

manic isle
#

sadly, you cannot currently do that via TrueGRF; you would have to do that manually

#

that is why if you use the FIRS Steeltown template, it copies the correct license for you

#

but if you create an empty project on your own, it does not

#

always a bit tricky ..

#

let's see if I can help you out here ..

#

the cheezy solution is to create a new project based on FIRS Steeltown, and remove everything you don't want πŸ˜›

#

but that would require some copy/pasting from your current project to the old

#

no, currently I do not really have another way for you to do this, sorry 😦 Did not expect this to pop up so quickly πŸ˜„

zinc bramble
#

ah ok

#

ill do it manually ig

manic isle
#

TrueGRF v3 landed .. now you can make townname GRFs πŸ˜„

proven elm
#

I made a test grf using the FIRS steeltown as template and modified the cargos and industries, first I got a compile error but found out it was because of the callbacks. I removed the lines that were causing the compile errors and now I don't get any error but jut hangs on "compiling"

#

Could it be still related to the rest of the callback code?

manic isle
#

It could, but that would be a bug :D if you have a link to your GitHub, I will check it out :)

#

(Link is in the top right corner)

manic isle
#

In the next release I will make it return better errors for this case, instead of just not doing anything πŸ™‚

manic isle
#

Deployed v3.0.1, with exactly that change. So if you now compile, you should see the above error yourself πŸ™‚

manic isle
golden wadi
#

the town name its seem not working....

manic isle
#

You have to use a bit more words I am afraid :)

golden wadi
#

so i also to try by using dutch one also not one appear when generating new world

manic isle
#

Sometimes sets don't show up the first time you open the preview. Go to NewGRF settings and hit apply. Now it does show up in the town name dropdown

golden wadi
#

yeah its set to apply but still not appear....

#

here is some screenshot

manic isle
#

Select the town name when generating a new world

#

It is in the drop down in the new world dialog

golden wadi
#

ah okey, thanks, now is working

manic isle
#

\o/

#

I will improve on it, but for now, this will have to do πŸ™‚

golden wadi
#

yeah im not really using custom town name, so i forgot that option

manic isle
#

btw, I did notice you removed all the production/acceptance from the callback .. so expect no industry to produce anything πŸ˜‰

proven elm
#

Ok lol, I'll add it back then, thanks

manic isle
#

Just deployed v3.1.0. Next time you load a project, it changes your GRFID. Most of them were still TRU1, and the first person uploaded one on BaNaNaS with that GRFID. So that isn't working ...

So now the GRFID is auto-generated in a special way, such that collision is unlikely. Also, you no longer have to set it yourself. So there is that πŸ™‚

Hopefully that makes the experience a bit smoother.

pastel thistle
#

Does the program automatically save if you close the tab?

manic isle
#

Yes and no. It doesn't save the item you have open when you just close it, but if you click to another item or to Testing or Project, it does

#

Item is a cargo, industry, ..

clear hearth
#

we demand truegrf stations

hoary bluff
#

You’re dedicated

pastel thistle
#

How do the industries work here? How do you make sure vehicles are capable of carrying the cargoes especially if they are not included in the vanilla game?

hoary bluff
#

You use cargo classes

manic isle
#

Vanilla game, since 12.1, will make sure there is always a wagon available for any cargo that exists

zinc bramble
#

Is there a way to undo redo or delete whole projects

hoary bluff
#

Go to GitHub and remove the repository

spring moth
#

Was testing around some town set name things and I got this error?

manic isle
#

Yeah, you have too many subsets

#

It ran out of random bits

spring moth
#

rip

#

also found out I can't use the same subset twice

manic isle
#

I can look into that, that should be possible as long as you don't make a cycle

spring moth
#

aye

manic isle
#

As that would be unresolvable ofc

spring moth
#

like if I have three sets (prefix, hyphens, main) I can only reference prefix once in hyphens or main, not both for some reason

manic isle
#

If you have an example for me, that would be great

spring moth
#

can do

manic isle
#

Just branch in GitHub the 'dev' branch that doesn't work

spring moth
#

also I found a bug where sometimes the UI just stops taking any inputs

#

or saving any inputs

manic isle
#

Check the console for any errors in that case

spring moth
#

oh yeah

manic isle
#

I do not send that to sentry yet

#

But if you can find how to reproduce that .. would really help :D

spring moth
#

literally if I create a New Townname set and click onto a different one without giving it a name or anything this just happens

#

now when I click on anything nothing happens

manic isle
#

Bug report this please :D

spring moth
#

yeah I would if I knew how ;-;

manic isle
spring moth
#

aight

manic isle
#

I still didn't add a link to it from the website I guess ... lol

#

Also a bug :p

spring moth
pastel thistle
#

I'm not sure how but the industries keep automatically closing after two months on my maps?

#

I made a test grf with a club that generates passengers and even if they are served by a bus route, they will close after two months

manic isle
#

Do you have a link to your project? (It is located in the top right corner)

pastel thistle
#

Industries automatically close after a few months no matter what

#

Also there can't be any other industries/cargoes in existence, the program also crashes if I add a second cargo to my grf

manic isle
#

Will check soon what is going on exactly :)

pastel thistle
#

Ok

manic isle
#

Deployed v3.1.1 to fix broken townnames when you create a new one and didn't add any part manually.

zinc bramble
#

The townname thing keeps on crashing

#

The website just freezes whenevrr i edit the aan part

manic isle
#

Weird. Anything in the console?

pastel thistle
manic isle
#

on short term, very little I can do about this, as it isn't a bug or problem of OpenTTD, but rather the lack of TrueGRF to allow easy configuration of production

valid flower
#

For commerical industries, I'd suggest perhaps having them typically take in Passengers and various Goods and perhaps mail as well, and produce Passengers (and waste/garbage/recyclables if thats an available cargo)

#

Though maybe to simulate people staying overnight at a hotel or just having a longer stay, perhaps keep the passenger production a little lower than the input

pastel thistle
#

πŸ‘

#

I will take a look into the callbacks

manic isle
#

you can use my FIRS clone as example, but it is not all that easy (yet)

#

sorry about that .. lacking time to work on this πŸ™‚

zinc bramble
manic isle
#

but if you have ways to reproduce it, that is also sufficient

#

I couldn't trigger it

smoky estuary
#

is there a way to copy and paste things between projects?

manic isle
#

Not at the moment, no

edgy rampart
#

Am i allowed to upload newGRF that generated from TrueGRF?

manic isle
#

Absolutely. Your work is yours to do with whatever you like

#

The tool only facilitates :)

#

Some day soon you will even be able to release via TrueGRF to BaNaNaS

edgy rampart
#

I guess i didn't know how to upload content into banana.

manic isle
#

Still very manual, but I am working on it .. Soon (tm)

#

(Read: my next holiday)

#

I should start a Patreon to take paid vacations to do this stuff :p

pastel thistle
#

How do I delete projects I don’t need anyone?

edgy rampart
#

Go to GitHub and delete project respository.

smoky estuary
#

question:
does "in large town" mean cities?

manic isle
#

The industry can only be built in towns (i.e. it has to replace houses) with population larger than 1200 (temperate bank)

#

I will add some hints in that dropdown soon πŸ™‚

smoky estuary
#

ah ok

valid flower
#

how about Place "On moon" πŸ™‚

smoky estuary
#

what settings should i put for goods?

#

im mostly copying from the steeltown preset but that doesn't have goods

smoky estuary
#

(for the record, this is what im trying to make)

hoary bluff
#

Express

smoky estuary
#

uh huh

#

and the other settings?

#

like the aging dates?

#

and how much per crate?

smoky estuary
#

nevermind, found it

hoary bluff
#

New grf wiki cargo types

restive citrus
#

or they're findable in the src on github also

smoky estuary
#

slams face on desk so i have to start ALL OVER AGAIN?!

edgy rampart
smoky estuary
#

wait, hang on

#

misread andy's post

#

thought he said "you'll need FIRS properties, not code references"

#

so no i dont need to restart phew

#

@restive citrus whats the Abbreviation for alcohol?

smoky estuary
edgy rampart
#

Suggestions: add iron horse as template,if permitted.

pastel thistle
#

How do I copy and paste graphics to the editor?

smoky estuary
#

CRTL+C on the image you want

#

CTRL+V in the editor

#

it can be problematic

#

best way ive found is to make sure you have no pending commits

pastel thistle
#

I can only copy

#

Not paste

smoky estuary
#

yeah it can be a pain

#

another method ive found to work

#

create a cargo

#

then delete it

smoky estuary
pastel thistle
smoky estuary
#

also what are you doing?

#

oh for

#

found the best method

#

save your image as a .PNG

#

get both windows side by side like this

#

then click and drag from the file to truegrf

pastel thistle
#

Ok let me try this

pastel thistle
smoky estuary
#

ah, i haven't gotten to the industries yet

#

for your own project or mine?

pastel thistle
#

My own project

smoky estuary
#

ah ok

restive citrus
#

abbreviations are stupid anyway

smoky estuary
#

thx

smoky estuary
#

and are the weight, pricings and age limits for fruit?

smoky estuary
#

does anybody know if we're allowed to re-use sprites from other newgrfs?
i want to make a shopping mall industry, like the grocer's shop or the general store

#

ideally i'd like to use the total town replacement shopping center

hoary bluff
#

You can use sprites from other grfs given that you follow their license

#

You can use ttrs3 sprites given you credit the author

smoky estuary
#

oh ok

#

ive yet to figure out how to actually write the info section, but when i do figure it out, ill be sure to give credit for the art

restive citrus
#

might not be able to use them in a GPL project

hoary bluff
#

Why not

#

It’s CC BY 3.0

restive citrus
#

Placing a work under GPL requires the copyright owner to consent

#

I didn't check which CC license it was, some are compatible

smoky estuary
#

uhhh, GPL?

smoky estuary
#

by the looks of it

#

as long as i put:
shopping center art by (insert here)
then i should be good

smoky estuary
pastel thistle
#

Do the industries made here replace all the default industries? Adding the passenger industry test grf I created results in maps with only passengers and no other cargoes/industries

manic isle
#

You found your own answer then :)

#

But yes, TrueGRF replaces everything, and only that what is defined remains

pastel thistle
#

Ah ok

edgy rampart
smoky estuary
#

oh jeez

smoky estuary
#

i wasn't expecting somebody to actually WANT my suggested new temperate basic

smoky estuary
#

@restive citrus sorry about @ing you again, but i couldn't find these settings for milk, fish and fruit

pastel thistle
#

For unknown reason, my town names are all automatically suffixed with -acis, even though I never specified them to be

#

There is no -acis suffix in my list of suffixes, but it is there

edgy rampart
edgy rampart
pastel thistle
#

No -acis suffix for me on my end

#

This didn't happen before

edgy rampart
restive citrus
smoky estuary
#

thank you

pastel thistle
#

Is it just me or I can’t make name sets of more than 300 names? Otherwise it starts adding random suffixes by itself

manic isle
#

it is possible I forgot to auto-generate new sets if you exceed 250 entries in a single set

#

OpenTTD doesn't allow sets bigger than 250; but you can chain them easily

pastel thistle
manic isle
#

well .. "sets" .. "parts-list"

pastel thistle
manic isle
#

make subsets of ~250 entries

#

make the mainset point to the subsets with equal weights

pastel thistle
#

Ok

smoky estuary
#

question about the callbacks

#

... how do i do them?

manic isle
#

See the FIRS port as example and there is a link to more info. But it ain't easy.

manic isle
#

It is one of those projects I will improve on over time, but .. time is the expensive resource atm πŸ˜„

restive citrus
#

500 people, 200 Euros each / year πŸ˜›

#

thinks it might not work out

smoky estuary
#

so just copying them over from the FIRS port doesn't work?

manic isle
#

With modification, it will

#

The top part describes the cargo

#

You need to make sure they match the industry

smoky estuary
#

already been doing that

#

i copied the FIRS coal mine for my coal mine

#

so on for the iron mine

#

and so on for the scrap yard

#

and i intend to do the same for the other industries that exist in the FIRS as well

edgy rampart
#

I had another suggestion, I'm using trueGRF using Desktop mode on my browser,and i could Import PNG images onto it,so please add attach file button.

pastel thistle
pastel thistle
#

What do you mean by this? The top of the message does not show