#TrueGRF - NewGRFs made easy - v2 released
381 messages Β· Page 1 of 1 (latest)
Sounds like you are watching paint dry? Not sure what to make of your comment π
if there is anything specific you are waiting for, let me know π
Return FIRS temperate/artic/tropic as template.
Would it be possible to make new vehicles with truegrf in the future?
if I ever gain some time on my hands, yes
Yay for svelte
?
NewObjects functionality?
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?
For now, the latter. But some quality of life additions wouldn't hurt π
yeah, thanks anyway
other question: if I modify the code in github how can I also update the list in the site?
okok
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
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
okok, just to ask, how do sets work?
Next to "names" is an (i) explaining how to reference sets
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 π
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
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
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
Most likely not. You can only base your NewGRF on one that is also created in TrueGRF, and has a permissive license that allows building on top of it. I do plan to port a few more, but that won't happen any time soon. Anything specific you are looking for?
i w as thinking about trying to base something off one of the other FIRS economies than steel town (specifically arctic basic)
Those specifically I do want to make available, but that won't happen any time soon, sorry π¦
ah
oke
why does it seem to be impossible to set express+refrigerated
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 π
lol
it i s kinda annoying sometimes tho
when your trying to replicate a combination from an existing industry set but you can't
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 π
e
i assume this shouldn't happen when using a template then (?)
nope π
where is downloading it?
TrueGRF - NewGRFs made easy
@manic isle might want to pin that and/or make it the topic π
It is in the initial post of this thread π
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
emoji
when is trains going to be added to TrueGrf
and could you allow commonly used cargo to the list of selectable cargo in the cargo tab
How can i remove a specific cargo from being accepted by a industry?
You can't
Whoops I thought this was #openttd
It is possible but I don't remember how
I have no time to work on TrueGRF, and haven't for over a year. So don't expect any changes to TrueGRF any time soon
The same way as you added them. Just click again to unselect
you can technically add other grf cargo to your industries. Here is a lost of different cargo types from other mods. https://newgrf-specs.tt-wiki.net/wiki/CargoTypes
anything for objects?
TrueGRF is a tool to easily make and test NewGRFs, all from the comfort of your browser.
Currently it only supports industries. Slowly I am building out more functionality.
Issues? https://github.com/TrueGRF/TrueGRF
Feedback? This is the place.
Just to showcase how it looks.
TrueGRF - NewGRFs made easy - v2 released
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
ah ok thx
i hope I can make sprites on the site in the later updates
its hard for me to scale things
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 π
π
π
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
its nice but can you make and undo, redo button, brush size, and paint bucket tools
Amazing
still tho its a cool update
yeah, and zooming ... I really miss zoom π But mostly I first need to create some horizontal space, as I don't have any more room in the interface .. π
are you planning to make it in an executable app?
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
ah i see
Is there an option for users to upload an image?
Yup. The small text below the editor tells you how. Either drag and drop the image, or copy/paste it.
(Onto the sprite editor)
I hope I can make callbacks without codes
like just choose what callback you want and enter the values
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 π
im very new to newgrf making so ye
so leave callbacks empty and enjoy default OpenTTD behaviour π
owh, ofc, as you cannot set the multipliers without writing a custom callback
hmm .. that is not completely intended
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 ..
and why do towns accept every one of my cargo
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 π
π
First I am creating this new feature ... just because I got a bit tired of industries π
Town names?
yup
this web can does autosave right?
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
wdym leave an item
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
some colours of the palette are animated colours
https://newgrf-specs.tt-wiki.net/wiki/PalettesAndCoordinates#Palettes <- ignore the Windows palette, but otherwise there you can read up all about it
sounds like a good improvement, to give this information in TrueGRF π
will put it on the list!
kk
wait
these graphics on the template are free to use for uploading my own grf right?
the FIRS Steeltown you mean?
those graphics are licensed under GPLv2; so you can only use those if you license under GPLv2 too
how do I change my license
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 π
TrueGRF v3 landed .. now you can make townname GRFs π
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?
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)
Your industry "Quarry" points to the cargo "LIME", which (no longer) exists
In the next release I will make it return better errors for this case, instead of just not doing anything π
Deployed v3.0.1, with exactly that change. So if you now compile, you should see the above error yourself π
https://github.com/orgs/TrueGRF/projects/1
Made a small roadmap, for my own sanity π
the town name its seem not working....
You have to use a bit more words I am afraid :)
so i also to try by using dutch one also not one appear when generating new world
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
Select the town name when generating a new world
It is in the drop down in the new world dialog
ah okey, thanks, now is working
yeah im not really using custom town name, so i forgot that option
Thank you
No worries. Let me know if you run into more trouble π
btw, I did notice you removed all the production/acceptance from the callback .. so expect no industry to produce anything π
Ok lol, I'll add it back then, thanks
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.
Does the program automatically save if you close the tab?
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, ..
we demand truegrf stations
Youβre dedicated
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?
You use cargo classes
Vanilla game, since 12.1, will make sure there is always a wagon available for any cargo that exists
Is there a way to undo redo or delete whole projects
Go to GitHub and remove the repository
Was testing around some town set name things and I got this error?
I can look into that, that should be possible as long as you don't make a cycle
aye
As that would be unresolvable ofc
like if I have three sets (prefix, hyphens, main) I can only reference prefix once in hyphens or main, not both for some reason
If you have an example for me, that would be great
can do
Just branch in GitHub the 'dev' branch that doesn't work
also I found a bug where sometimes the UI just stops taking any inputs
or saving any inputs
Check the console for any errors in that case
oh yeah
I do not send that to sentry yet
But if you can find how to reproduce that .. would really help :D
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
Bug report this please :D
yeah I would if I knew how ;-;
aight
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
Do you have a link to your project? (It is located in the top right corner)
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
Will check soon what is going on exactly :)
Ok
Deployed v3.1.1 to fix broken townnames when you create a new one and didn't add any part manually.
The townname thing keeps on crashing
The website just freezes whenevrr i edit the aan part
Weird. Anything in the console?
If I play in a scenario that I made, I can change their production beforehand and prevent the clubs from closing automatically
The issue here is that you didn't set any production in your GRF. This currently isn't all that easy, as it has to be done via callbacks. I have some ideas how to improve that situation, but not any time soon. Either way, that means there is no production, and that means OpenTTD will close those industries
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
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
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 π
How do i open it
right click, inspect (or what-ever it is called in your browser), then select "console" in the new window / pane that opens
but if you have ways to reproduce it, that is also sufficient
I couldn't trigger it
is there a way to copy and paste things between projects?
Not at the moment, no
Am i allowed to upload newGRF that generated from TrueGRF?
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
I guess i didn't know how to upload content into banana.
https://bananas.openttd.org and follow the text :)
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
How do I delete projects I donβt need anyone?
Go to GitHub and delete project respository.
question:
does "in large town" mean cities?
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 π
ah ok
how about Place "On moon" π
what settings should i put for goods?
im mostly copying from the steeltown preset but that doesn't have goods
(for the record, this is what im trying to make)
New grf wiki cargo types
@smoky estuary if you need other FIRS properties, check the code reference page https://grf.farm/firs/4.4.0/html/code_reference.html#cargos
or they're findable in the src on github also
slams face on desk so i have to start ALL OVER AGAIN?!
Me who actually waiting for the NewGRF to be public:
https://c.tenor.com/rF5ERf7ncqUAAAAM/oh-no-top-gear.gif
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?
oh and if anybody wishes to help
https://github.com/Will-the-mechanist/New-Temperate-Basic
Suggestions: add iron horse as template,if permitted.
How do I copy and paste graphics to the editor?
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
yeah it can be a pain
another method ive found to work
create a cargo
then delete it
wait, are you actually waiting for it?
How would that work?
?
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
Ok let me try this
Oh I was trying to design the industrial buildings but couldn't figure out how to paste them in
My own project
ah ok
abbreviations are stupid anyway
thx
and are the weight, pricings and age limits for fruit?
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
You can use sprites from other grfs given that you follow their license
You can use ttrs3 sprites given you credit the author
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
Placing a work under GPL requires the copyright owner to consent
I didn't check which CC license it was, some are compatible
uhhh, GPL?
the licence part of the readme
by the looks of it
as long as i put:
shopping center art by (insert here)
then i should be good
and from in the game itself
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
You found your own answer then :)
But yes, TrueGRF replaces everything, and only that what is defined remains
Ah ok
Yes.
oh jeez
i wasn't expecting somebody to actually WANT my suggested new temperate basic
@restive citrus sorry about @ing you again, but i couldn't find these settings for milk, fish and fruit
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
That might the problems.
Click on "part" which had < > button,you will find it.
https://github.com/andythenorth/firs/blob/master/src/cargos/milk.py - dig around github src for the same for other cargos
thank you
Is it just me or I canβt make name sets of more than 300 names? Otherwise it starts adding random suffixes by itself
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
I have this problem every time I reach 250-300 names
well .. "sets" .. "parts-list"
How would that work?
make subsets of ~250 entries
make the mainset point to the subsets with equal weights
Ok
See the FIRS port as example and there is a link to more info. But it ain't easy.
It is one of those projects I will improve on over time, but .. time is the expensive resource atm π
so just copying them over from the FIRS port doesn't work?
With modification, it will
The top part describes the cargo
You need to make sure they match the industry
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
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.
So you mean create another set once you reach 250 names?
What do you mean by this? The top of the message does not show