News:

Welcome to World of Banished!

Main Menu

Some ideas for mods and some questions about making mods

Started by tanypredator, May 09, 2016, 10:20:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kid1293

@RedKetchup - I'll do that even if it's more of a discussion.

@tanypredator - see you in Blender section

tanypredator

Can't finish my mod again :( It is compiled normally (after I corrected some mistakes), it appears in the list of mods, but oats just don't appear. Not visually, not gathered by gatherers. I tried to change its spawn parameters (first I wanted it to spawn by itself, but then added spawn by trees), but nothing helped. Can somebody please look at it?

PS. I'm not sure at all about the size of model, just can't check it in game.

kid1293

Oh yes, it's there but pale and maybe small.

The gatherers collect it but get nothing in their inventory.

?

tanypredator

Quote from: kid1293 on May 21, 2016, 09:32:49 AM
Oh yes, it's there but pale and maybe small.
The gatherers collect it but get nothing in their inventory.
?

Hm, I searched it thoroughly and couldn't see. Then I'll increase model and look in the code for mistake about inventory. Thank you!

tanypredator

#79
I increased model (but I think it must be even more big), but I can't get gatherers to show it in inventory. I thought it might be because I haven't added "Template/GathererShelter.rsc:autopickup" into WildOatsResources.rsc, but I put it there and no result. Maybe it would help if I add a new building and profession to gather oats.

PS. Added "Template/Profession/Profession.rsc:laborer" - still without affect.

RedKetchup

what is happening when the citizens pick it up ? did you created a RawMaterialOats.rsc ? and this raw material does it has it own 3d mesh,stingtable,sprites and icons ?
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

tanypredator

Quote from: RedKetchup on May 21, 2016, 11:38:41 AM
what is happening when the citizens pick it up ? did you created a RawMaterialOats.rsc ? and this raw material does it has it own 3d mesh,stingtable,sprites and icons ?

Yes, everything in place, the source is up there in previous posts. But there was something strange with the model of oats basket, so I'm now testing a new one.

tanypredator

Here is what I have now. I think the model is not so bad, but still nothing gathered. When gatherers pick it, it just disappears, I haven't seen my crop model dropped. And nothing gathered as a result.

kid1293

So far no solution but some small errors:

  quotation marks in

RawMaterialWildOats.rsc

ValueDescription value
{      ...
   String _stringName = "WildOats";
       ...      
}

Maybe you should look later in Resource/Template/ClearWild.rsc
Don't know if it's only to remove resources when building ?

See you.

tanypredator

Quote from: kid1293 on May 21, 2016, 01:22:39 PM
  quotation marks in
RawMaterialWildOats.rsc
ValueDescription value
{      ...
   String _stringName = "WildOats";
       ...      
}
Maybe you should look later in Resource/Template/ClearWild.rsc
Don't know if it's only to remove resources when building ?
See you.

It is just the same as in RawMaterialLettuce.rsc (String _stringName = Lettuce;), but I'll try to change it.

Actually I wanted to make a separate building and profession and, maybe, the same tool as in Busy Workers (especially because I want to add more flora and to change herbs' model), but I assumed that it would be faster to check the work of mod by using gatherers. So now I'll try first to add building and profession.

kid1293

I think it should work with a gatherer or
just a worker if you select the oats to be harvested.

I have rebuilt your fbx - nothing was wrong
I have checked code - nothing wrong what I can see.
(compared it to blueberry and some others)

You should get the code working before you dive in too deep
and build a new house

kid1293


tanypredator

kid1293, I'm not sure I understood right - you made citizens to gather it, so problem is in Gatherers Shed, so new building will help? Great, thank you!

I have to admit that crop model doesn't look good, I have to improve it.

kid1293

No, citizens DON'T gather it.
I've tried but no...
It was a gatherer who took it.
I goes to the barn and people eat it.
So for now it's only to make citizens too.

kid1293

this is what i did
ExternalList resource
{
   External _resources
   [
      "Template/NaturalResourceWildOatsGrass.rsc"      
      "Template/RawMaterialWildOats.rsc"
      "Template/GathererShelter.rsc:herbalist"
      "Template/NaturalResourceTree.rsc:spawn"

//      "Template/GathererShelter.rsc:autopickup"
//      "Template/Profession/Profession.rsc:gatherer"
//      "Template/Profession/Profession.rsc:laborer"
   ]
}

changed the references to Profession.rsc (in GathererShelter.rsc and NaturalResourceWildOatsGrass.rsc)
back to original :
   Profession _requiredHarvestProfession = "Game/Profession/Profession.rsc:gatherer";

and removed the profession file from your folder
nothing is changed so you don't need to call it,
the same for autopickup.