Aller au contenu

Photo

I dont want horeses inside.


  • Veuillez vous connecter pour répondre
6 réponses à ce sujet

#1
Knight_Shield

Knight_Shield
  • Members
  • 444 messages
I want to keep horses in outside areas.

I was reading and it says there is a module switch but I dont think Im doing it right.

Here is what I put in my onmoduleload  but come up with an error.


#include "x3_inc_horse" 
  


SetModuleSwitch(X3_MOUNTS_EXTERNAL_ONLY,TRUE);


I get this ERROR:VARIABLE DEFINED WITHOUT TYPE

#2
Knight_Shield

Knight_Shield
  • Members
  • 444 messages
Ok after I read  a little I found this and it works.


I set a variable on module X3_MOUNTS_EXTERNAL_ONLY  integer     1

#3
Lazarus Magni

Lazarus Magni
  • Members
  • 1 134 messages
Hey Knightshield, I am just curious what do you mean "set a variable on module"?

And how are underground areas handled using this switch?

#4
Knight_Shield

Knight_Shield
  • Members
  • 444 messages
Hey there.When your in toolset go to edit then module properties.Somewhere in there is a variables tab.Click variables and you will see where to enter it.

X3_MOUNTS_EXTERNAL_ONLY choose (intgr) then put a 1 .

I tested with a humand on a horse and it worked but I had a dwarf on a pony and it crash me.It didnt crash server just me.Then when I came back I was stuck on the horse ,so then I read go to boutique and set your pheno type to normal.It worked.Think only dwarf has issue so far.I am testing.There are module switches but I couldnt make them work so trying the variables.I read all this in the x3_inc_horse script.I am using cep 2.3 btw.

Modifié par Knight_Shield, 24 juillet 2012 - 10:25 .


#5
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages

Knight_Shield wrote...

I want to keep horses in outside areas.

I was reading and it says there is a module switch but I dont think Im doing it right.

Here is what I put in my onmoduleload  but come up with an error.


#include "x3_inc_horse" 
  


SetModuleSwitch(X3_MOUNTS_EXTERNAL_ONLY,TRUE);


I get this ERROR:VARIABLE DEFINED WITHOUT TYPE


First SetModuleSwitch is in x2_inc_switches not x3_inc_horses. 

Second  X3_MOUNTS_EXTERNAL_ONLY Is not a Constant.   So you will need to place quotes around it. 

#include "x3_inc_horse"
#include "x3_inc_switches"
SetModuleSwitch("X3_MOUNTS_EXTERNAL_ONLY",TRUE);

 
 

#6
Lazarus Magni

Lazarus Magni
  • Members
  • 1 134 messages
Thanks fellas.

#7
Pstemarie

Pstemarie
  • Members
  • 2 745 messages
x3_mod_def_load already has this switch in it. You just need to uncomment it.