May 19, 2024, 02:13:56

Author Topic: adding all items to nexus campaign, need help/info  (Read 12762 times)

Offline super0023

  • Recruit
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
adding all items to nexus campaign, need help/info
« on: July 13, 2011, 03:50:07 »
I'm changing the amount of resource points and adding all the items for all the Nexus missions....is there an order that the weapons must be added in or a format they need to be in?  this is how i have them now 
Code: [Select]
//Fegyverek
uAddDevicesToStock(#weap_eShell,250);
uAddDevicesToStock(#weap_blinder,250);
uAddDevicesToStock(#weap_eBomb,250);
uAddDevicesToStock(#weap_Plasma,250);
uAddDevicesToStock(#weap_liLaser,250);
uAddDevicesToStock(#weap_heLaser,250);
uAddDevicesToStock(#weap_Flak,250);
uAddDevicesToStock(#weap_Torp,250);
uAddDevicesToStock(#weap_Gun,250);
uAddDevicesToStock(#weap_Miss,250);








uAddDevicesToStock(#weap_eShell2,250);
uAddDevicesToStock(#weap_eTorp,250);
uAddDevicesToStock(#weap_eBomb2,250);
uAddDevicesToStock(#weap_Plasma2,250);
uAddDevicesToStock(#weap_liLaser2,250);
uAddDevicesToStock(#weap_heLaser2,250);
uAddDevicesToStock(#weap_Flak2,250);
uAddDevicesToStock(#weap_Torp2,250);
uAddDevicesToStock(#weap_Gun2,250);
uAddDevicesToStock(#weap_Miss2,250);






uAddDevicesToStock(#weap_eShell3,250);
uAddDevicesToStock(#weap_eBomb3,250);
uAddDevicesToStock(#weap_Plasma3,250);
uAddDevicesToStock(#weap_liLaser3,250);
uAddDevicesToStock(#weap_heLaser3,250);
uAddDevicesToStock(#weap_Flak3,250);
uAddDevicesToStock(#weap_Torp3,250);
uAddDevicesToStock(#weap_Gun3,250);
uAddDevicesToStock(#weap_Miss3,250);


uAddDevicesToStock(#weap_SigLaser,250);
uAddDevicesToStock(#weap_Ionwhip,250);
uAddDevicesToStock(#weap_TechScanner,250);
uAddDevicesToStock(#weap_GateDisruptor,250);
uAddDevicesToStock(#weap_oaLaser,250);
uAddDevicesToStock(#weap_oliLaser,250);
uAddDevicesToStock(#weap_oMassDrv,250);
uAddDevicesToStock(#weap_omGun,250);
uAddDevicesToStock(#weap_olGun,250);
uAddDevicesToStock(#weap_osTorp,250);
uAddDevicesToStock(#weap_otoMiss,250);
uAddDevicesToStock(#weap_oswMiss,250);
uAddDevicesToStock(#weap_oFlak,250);
uAddDevicesToStock(#weap_heLaser3Cheat,250);
uAddDevicesToStock(#weap_eSkeeter,250);


// Squads
uAddDevicesToStock(#weap_Fighter,250);
uAddDevicesToStock(#weap_Marine,250);
uAddDevicesToStock(#weap_Gunboat,250);
uAddDevicesToStock(#weap_Bomber,250);
uAddDevicesToStock(#weap_Cyborg,250);
uAddDevicesToStock(#weap_aFighter,250);
uAddDevicesToStock(#weap_aGunboat,250);
uAddDevicesToStock(#weap_aBomber,250);
uAddDevicesToStock(#weap_oMarine,250);
uAddDevicesToStock(#weap_oFighter,250);




// Shields
uAddDevicesToStock(#shld_1_b123,25);
uAddDevicesToStock(#shld_1_s123,25);
uAddDevicesToStock(#shld_1_b124,25);
uAddDevicesToStock(#shld_1_s124,25);
uAddDevicesToStock(#shld_1_b125,25);
uAddDevicesToStock(#shld_1_s125,25);
uAddDevicesToStock(#shld_f123,25);
uAddDevicesToStock(#shld_am,25);


// Engines
uAddDevicesToStock(#eng_sPlasEng,25);
uAddDevicesToStock(#eng_bPlasEng,25);
uAddDevicesToStock(#eng_secPlasEng,25);
uAddDevicesToStock(#eng_sChemEng,25);
uAddDevicesToStock(#eng_bChemEng,25);
AddDevicesToStock(#eng_secChemEng,25);
uAddDevicesToStock(#eng_sIonEng,25);
uAddDevicesToStock(#eng_bIonEng,25);
uAddDevicesToStock(#eng_secIonEng,25);
uAddDevicesToStock(#eng_sFusEng,25);
uAddDevicesToStock(#eng_bFusEng,25);
uAddDevicesToStock(#eng_secFusEng,25);
uAddDevicesToStock(#eng_sPhotEng,25);
uAddDevicesToStock(#eng_secPhotEng,25);
uAddDevicesToStock(#eng_bAmatEng,25);
uAddDevicesToStock(#eng_comDrive,25);
uAddDevicesToStock(#eng_acomDrive,25);
uAddDevicesToStock(#eng_tacDrive,25);
uAddDevicesToStock(#eng_atacDrive,25));
uAddDevicesToStock(#eng_stealthDrive,25);


// Support
uAddDevicesToStock(#supp_osensor,25);
uAddDevicesToStock(#supp_sensor,25);
uAddDevicesToStock(#supp_sensor2,25);
uAddDevicesToStock(#supp_sensor3,25);
uAddDevicesToStock(#supp_ecm,25);
uAddDevicesToStock(#supp_ecm2,25);
uAddDevicesToStock(#supp_osecm,25);
uAddDevicesToStock(#supp_oseccm,25);
uAddDevicesToStock(#supp_eccm,25);
uAddDevicesToStock(#supp_eccm2,25);


uAddDevicesToStock(#supp_bWGen,25);
uAddDevicesToStock(#supp_cWGen,25);
uAddDevicesToStock(#supp_tWGen,25);


uAddDevicesToStock(#supp_bWGen2,25);
uAddDevicesToStock(#supp_cWGen2,25);
uAddDevicesToStock(#supp_tWGen2,25);


uAddDevicesToStock(#supp_bWGen3,25);
uAddDevicesToStock(#supp_cWGen3,25);
uAddDevicesToStock(#supp_tWGen3,25);


uAddDevicesToStock(#supp_secWGen,25);
uAddDevicesToStock(#supp_secWGen2,25);
uAddDevicesToStock(#supp_sOWGen,25);
uAddDevicesToStock(#supp_bOWGen,25);
uAddDevicesToStock(#supp_osgen,25);


uAddDevicesToStock(#supp_sSGen,25);
uAddDevicesToStock(#supp_mSGen,25);
uAddDevicesToStock(#supp_bSGen,25);


uAddDevicesToStock(#supp_sSGen2,25);
uAddDevicesToStock(#supp_mSGen2,25);
uAddDevicesToStock(#supp_bSGen2,25);


uAddDevicesToStock(#supp_sSGen3,25);
uAddDevicesToStock(#supp_mSGen3,25);
uAddDevicesToStock(#supp_bSGen3,25);


uAddDevicesToStock(#supp_longRange,25);
uAddDevicesToStock(#supp_cloaking1,25);
uAddDevicesToStock(#supp_ipblocker,25);
uAddDevicesToStock(#supp_jamming,25);


uAddDevicesToStock(#supp_cloaking2,25);


uAddDevicesToStock(#supp_ores,25);
uAddDevicesToStock(#supp_res,25);
uAddDevicesToStock(#supp_res2,25);
uAddDevicesToStock(#supp_res3,25);uAddDevicesToStock(#supp_res4,25);


Offline super0023

  • Recruit
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
Re: adding all items to nexus campaign, need help/info
« Reply #1 on: July 13, 2011, 04:23:02 »
don't know what i did but its now crashing on start up

Offline super0023

  • Recruit
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
Re: adding all items to nexus campaign, need help/info
« Reply #2 on: July 13, 2011, 04:48:53 »
i added those items and changed the resource points and that made the game crash on start up so i put my backup missions in and its working again....idk what went wrong, could really use some help   

Offline Mularac

  • Lieutenant
  • ***
  • Posts: 531
  • Karma: 11
    • View Profile
Re: adding all items to nexus campaign, need help/info
« Reply #3 on: July 13, 2011, 15:54:37 »
Where did you add them? to which file?
Also, when meddling with campaign files you'll have to re-start a campaign to avoid crashes.

Offline super0023

  • Recruit
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
Re: adding all items to nexus campaign, need help/info
« Reply #4 on: July 13, 2011, 22:09:47 »
universe/story/rules episode 1,2,3....it was a new campaign and as i said it wouldn't even start it - crashed before the menu or even the opening credits.....i'm 99% sure i added it to the correct area and i know it wasn't the resource points(I'm not new when it comes to modding - i've worked on major modding teams from mount&blade to medieval 2 and even star wars eaw and star trek legacy, I just don't know much about this game and all my files are in Hungarian by the looks of it)  i'm thinking it is the format of adding the items or some file i need to change that i don't know about....   

Offline Mularac

  • Lieutenant
  • ***
  • Posts: 531
  • Karma: 11
    • View Profile
Re: adding all items to nexus campaign, need help/info
« Reply #5 on: July 13, 2011, 22:38:00 »
Well, for starters, what you modded there wasn't the ammount of available points but rather the ammount of devices available for installment.
If you want to change the ammount of points you have to change this line: "(...):uSetResourcePoints(#);"
Change # to whatever ammount you want

Offline super0023

  • Recruit
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
Re: adding all items to nexus campaign, need help/info
« Reply #6 on: July 14, 2011, 00:43:42 »
i know where to change the resource points, i changed the amount of devices as well, like i said i'm not new to this i have the resource points correct and working(already tested) all i need to know about is the devices

Offline Mularac

  • Lieutenant
  • ***
  • Posts: 531
  • Karma: 11
    • View Profile
Re: adding all items to nexus campaign, need help/info
« Reply #7 on: July 14, 2011, 02:09:07 »
Well, it's hard to spot the error unless you show us the whole episode_1.rules file.
Where exactly did you add them in that file?

Offline super0023

  • Recruit
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
Re: adding all items to nexus campaign, need help/info
« Reply #8 on: July 14, 2011, 19:05:07 »
i did it like this.
Code: [Select]


                                   
                                    // Raktarkeszlet
uClearResourceStock();

//Fegyverek
uAddDevicesToStock(#weap_eShell,250);
uAddDevicesToStock(#weap_blinder,250);
uAddDevicesToStock(#weap_eBomb,250);
uAddDevicesToStock(#weap_Plasma,250);
uAddDevicesToStock(#weap_liLaser,250);
uAddDevicesToStock(#weap_heLaser,250);
uAddDevicesToStock(#weap_Flak,250);
uAddDevicesToStock(#weap_Torp,250);
uAddDevicesToStock(#weap_Gun,250);
uAddDevicesToStock(#weap_Miss,250);








uAddDevicesToStock(#weap_eShell2,250);
uAddDevicesToStock(#weap_eTorp,250);
uAddDevicesToStock(#weap_eBomb2,250);
uAddDevicesToStock(#weap_Plasma2,250);
uAddDevicesToStock(#weap_liLaser2,250);
uAddDevicesToStock(#weap_heLaser2,250);
uAddDevicesToStock(#weap_Flak2,250);
uAddDevicesToStock(#weap_Torp2,250);
uAddDevicesToStock(#weap_Gun2,250);
uAddDevicesToStock(#weap_Miss2,250);






uAddDevicesToStock(#weap_eShell3,250);
uAddDevicesToStock(#weap_eBomb3,250);
uAddDevicesToStock(#weap_Plasma3,250);
uAddDevicesToStock(#weap_liLaser3,250);
uAddDevicesToStock(#weap_heLaser3,250);
uAddDevicesToStock(#weap_Flak3,250);
uAddDevicesToStock(#weap_Torp3,250);
uAddDevicesToStock(#weap_Gun3,250);
uAddDevicesToStock(#weap_Miss3,250);


uAddDevicesToStock(#weap_SigLaser,250);
uAddDevicesToStock(#weap_Ionwhip,250);
uAddDevicesToStock(#weap_TechScanner,250);
uAddDevicesToStock(#weap_GateDisruptor,250);
uAddDevicesToStock(#weap_oaLaser,250);
uAddDevicesToStock(#weap_oliLaser,250);
uAddDevicesToStock(#weap_oMassDrv,250);
uAddDevicesToStock(#weap_omGun,250);
uAddDevicesToStock(#weap_olGun,250);
uAddDevicesToStock(#weap_osTorp,250);
uAddDevicesToStock(#weap_otoMiss,250);
uAddDevicesToStock(#weap_oswMiss,250);
uAddDevicesToStock(#weap_oFlak,250);
uAddDevicesToStock(#weap_heLaser3Cheat,250);
uAddDevicesToStock(#weap_eSkeeter,250);


// Squads
uAddDevicesToStock(#weap_Fighter,250);
uAddDevicesToStock(#weap_Marine,250);
uAddDevicesToStock(#weap_Gunboat,250);
uAddDevicesToStock(#weap_Bomber,250);
uAddDevicesToStock(#weap_Cyborg,250);
uAddDevicesToStock(#weap_aFighter,250);
uAddDevicesToStock(#weap_aGunboat,250);
uAddDevicesToStock(#weap_aBomber,250);
uAddDevicesToStock(#weap_oMarine,250);
uAddDevicesToStock(#weap_oFighter,250);




// Shields
uAddDevicesToStock(#shld_1_b123,25);
uAddDevicesToStock(#shld_1_s123,25);
uAddDevicesToStock(#shld_1_b124,25);
uAddDevicesToStock(#shld_1_s124,25);
uAddDevicesToStock(#shld_1_b125,25);
uAddDevicesToStock(#shld_1_s125,25);
uAddDevicesToStock(#shld_f123,25);
uAddDevicesToStock(#shld_am,25);


// Engines
uAddDevicesToStock(#eng_sPlasEng,25);
uAddDevicesToStock(#eng_bPlasEng,25);
uAddDevicesToStock(#eng_secPlasEng,25);
uAddDevicesToStock(#eng_sChemEng,25);
uAddDevicesToStock(#eng_bChemEng,25);
AddDevicesToStock(#eng_secChemEng,25);
uAddDevicesToStock(#eng_sIonEng,25);
uAddDevicesToStock(#eng_bIonEng,25);
uAddDevicesToStock(#eng_secIonEng,25);
uAddDevicesToStock(#eng_sFusEng,25);
uAddDevicesToStock(#eng_bFusEng,25);
uAddDevicesToStock(#eng_secFusEng,25);
uAddDevicesToStock(#eng_sPhotEng,25);
uAddDevicesToStock(#eng_secPhotEng,25);
uAddDevicesToStock(#eng_bAmatEng,25);
uAddDevicesToStock(#eng_comDrive,25);
uAddDevicesToStock(#eng_acomDrive,25);
uAddDevicesToStock(#eng_tacDrive,25);
uAddDevicesToStock(#eng_atacDrive,25));
uAddDevicesToStock(#eng_stealthDrive,25);


// Support
uAddDevicesToStock(#supp_osensor,25);
uAddDevicesToStock(#supp_sensor,25);
uAddDevicesToStock(#supp_sensor2,25);
uAddDevicesToStock(#supp_sensor3,25);
uAddDevicesToStock(#supp_ecm,25);
uAddDevicesToStock(#supp_ecm2,25);
uAddDevicesToStock(#supp_osecm,25);
uAddDevicesToStock(#supp_oseccm,25);
uAddDevicesToStock(#supp_eccm,25);
uAddDevicesToStock(#supp_eccm2,25);


uAddDevicesToStock(#supp_bWGen,25);
uAddDevicesToStock(#supp_cWGen,25);
uAddDevicesToStock(#supp_tWGen,25);


uAddDevicesToStock(#supp_bWGen2,25);
uAddDevicesToStock(#supp_cWGen2,25);
uAddDevicesToStock(#supp_tWGen2,25);


uAddDevicesToStock(#supp_bWGen3,25);
uAddDevicesToStock(#supp_cWGen3,25);
uAddDevicesToStock(#supp_tWGen3,25);


uAddDevicesToStock(#supp_secWGen,25);
uAddDevicesToStock(#supp_secWGen2,25);
uAddDevicesToStock(#supp_sOWGen,25);
uAddDevicesToStock(#supp_bOWGen,25);
uAddDevicesToStock(#supp_osgen,25);


uAddDevicesToStock(#supp_sSGen,25);
uAddDevicesToStock(#supp_mSGen,25);
uAddDevicesToStock(#supp_bSGen,25);


uAddDevicesToStock(#supp_sSGen2,25);
uAddDevicesToStock(#supp_mSGen2,25);
uAddDevicesToStock(#supp_bSGen2,25);


uAddDevicesToStock(#supp_sSGen3,25);
uAddDevicesToStock(#supp_mSGen3,25);
uAddDevicesToStock(#supp_bSGen3,25);


uAddDevicesToStock(#supp_longRange,25);
uAddDevicesToStock(#supp_cloaking1,25);
uAddDevicesToStock(#supp_ipblocker,25);
uAddDevicesToStock(#supp_jamming,25);


uAddDevicesToStock(#supp_cloaking2,25);


uAddDevicesToStock(#supp_ores,25);
uAddDevicesToStock(#supp_res,25);
uAddDevicesToStock(#supp_res2,25);
uAddDevicesToStock(#supp_res3,25);
uAddDevicesToStock(#supp_res4,25);
,uDifficultyLevel()=2,

// Resource pontok a hajokhoz
AngelwingC:uSetResourcePoints(100);

// Hajo javitas, inicializalas
//Res:1, Rep:0
uRepairPlayersFleet(1,1);

// Devtype lock, unclock
// uEnableDevType(devtype, enable)



« Last Edit: July 14, 2011, 19:06:58 by super0023 »

Offline Mularac

  • Lieutenant
  • ***
  • Posts: 531
  • Karma: 11
    • View Profile
Re: adding all items to nexus campaign, need help/info
« Reply #9 on: July 14, 2011, 20:02:38 »
yes, but where? in which rule? In which episode?
Can you upload your episodes_1.rules file?

Offline super0023

  • Recruit
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
Re: adding all items to nexus campaign, need help/info
« Reply #10 on: July 15, 2011, 02:30:25 »
i just said i put it just as its shown in that paragraph of the episode rules and if you read up a couple post i said i put it in episode rules 1, 2 and 3.....

Offline Mularac

  • Lieutenant
  • ***
  • Posts: 531
  • Karma: 11
    • View Profile
Re: adding all items to nexus campaign, need help/info
« Reply #11 on: July 15, 2011, 03:04:45 »
I saw, but the reason I'm asking is because I don't see any rules, or Nexus scripting sintax in your code!
Campaign scripting is a very tough thing, and not very recommendable if you've just started to get used to the scripting language.

Offline The Old Dragon

  • Ensign
  • ***
  • Posts: 362
  • Karma: 6
    • View Profile
    • http://
Re: adding all items to nexus campaign, need help/info
« Reply #12 on: July 15, 2011, 09:00:39 »
Hi there Super0023,

I did spot the following error in the coding above that would certainly cause a crash, so try removing the second closed bracket and then give it a whirl...

uAddDevicesToStock(#eng_atacDrive,25));

But as Mularac says, it is better to post the entire script in circumstances such as these (whether you put it all in a post or attach it doesn't really matter) as quite often the error can be outside the area you think it's in.
Better to look the fool by asking, then prove them right with ignorance.