LaPoieto 0 Posted March 8, 2003 For some reason, everytime i put things in the Init field when I started a preview it throws me off the game. Share this post Link to post Share on other sites
edc 0 Posted March 8, 2003 Does it give you an error message? Share this post Link to post Share on other sites
LaPoieto 0 Posted March 8, 2003 no and none of the other unit's work either Share this post Link to post Share on other sites
Chronicles 0 Posted March 8, 2003 Hint for you LaPoieto : Put more info about your problem , and probably someone will figure out what are you doing wrong By example , what is exactly the "thing" you put in the init line of a unit that make your game crash . When a string doesnt not work in the way OFP work , when clicking Preview , you have an error. But if the string is something totally erroneous or show unexpected infinite loop , it can put you out of the mission editor. So if you put exactly the string you put in unit init line , someone will certainly be able to help you. And you can check this too : sometimes new addons can have problems and contribute to a crash Share this post Link to post Share on other sites
LaPoieto 0 Posted March 8, 2003 no and none of the other unit's work either Share this post Link to post Share on other sites
LaPoieto 0 Posted March 8, 2003 Allright lets see i am trying to take a Marine and equip it with a M249 but first to try and see if it works i put in (this removeweapon M16) then it kicks me off Share this post Link to post Share on other sites
Chronicles 0 Posted March 8, 2003 I think i know what you did wrong The M249 is an addon ? Â but i suppose it is considered as a machine gun class (the maker of the addon choose in what class he create the addon , so i am not sure). So if you only put this : </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">this removeweapon M16<span id='postcolor'> and try to add the M249 with </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">this addweapon "M249"<span id='postcolor'> (or something like that) , you have a problem, just take a look at the soldier slots when you have a default M60 machine gunner or a default M16 soldier : they are not the same in number and organization So it confuses the game because the M16 magazines + hand grenades take too much slots (as i said if you put a machine gun in primary, slots are not organized the same as a rifle, there are less slots and ONLY for machine gun ammo box) I think it is why you have a crash error You have to remove everything from the unit , not only his primary weapon Let's take an example : I have a M16 soldier, i want to give him a M60 machinegun , so his init field will be like this </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">removeallweapons this; this addmagazine "M60"; this addmagazine "M60"; this addmagazine "M60"; this addweapon "M60"<span id='postcolor'> with that , it will remove everything from every slots (primary weapon, secondary, magazines...) from the M16 soldier and it will had 3 M60 ammo boxes and the M60 (always add the ammo before the gun to have it loaded at the game start) Now you have to adapt with the M249 name instead of M60 (i dont know what is the name of the M249 addon you actually have in OFP) and as i said , it can be a faulty addon , so try to remove it if the error continue (try my test with the M16 soldier with what i write to have him with a M60, if it does not work for you, you have definitely something wrong in your install , addon perhaps) Share this post Link to post Share on other sites