Hammerkraft Posted July 24, 2014 Share Posted July 24, 2014 Hi guys, In my Campaign is now the time, where I have to change the goal conditions of all mission. For Example: In Level01 I want that you have to collect 10 Energy-Cristals. Normal is to collect 5 Cristals. I try to find out, what I have to do, and changed some texts with the npl scripter, but thats only for the green box In-Game. I want to know, how to change the goal in a level. Hammerkraft Link to comment Share on other sites More sharing options...
RockRaiderWolf Posted July 24, 2014 Share Posted July 24, 2014 Hi guys, In my Campaign is now the time, where I have to change the goal conditions of all mission. For Example: In Level01 I want that you have to collect 10 Energy-Cristals. Normal is to collect 5 Cristals. I try to find out, what I have to do, and changed some texts with the npl scripter, but thats only for the green box In-Game. I want to know, how to change the goal in a level. Hammerkraft what green box in-game are you referring to? the npl file IS where the Level win/lose conditions are set. Link to comment Share on other sites More sharing options...
Hammerkraft Posted July 26, 2014 Author Share Posted July 26, 2014 I mean the green In-Game box, when you are in a level. The Box under he O² display. Left of the four yellow arrows and right of the Info-List, where you see :" A Monster spawned" or "Rock Raider save teleported" and many more. Example: If you find a new cave, there is a text:"You find a new cave" and a picture on the right end of the box. Edit: Oh I see now, the NPL Scripter only open .nrm and .txt , not .npl But it names NPL Scripter. Didnt I see where the "Open .npl" is? Next Post: Okay, I found a other way for the npl files. That work now, but now I test the first Level. Now, when the BriefingPanel is seen, I press Space to continue. But the Briefing Panel only change for a milisecond to the second side, and than turn back to the first side. So I can't start the Level. Did you know what I mean? Hammerkraft Link to comment Share on other sites More sharing options...
alan Posted July 26, 2014 Share Posted July 26, 2014 Okay, I found a other way for the npl files. That work now, but now I test the first Level. Now, when the BriefingPanel is seen, I press Space to continue. But the Briefing Panel only change for a milisecond to the second side, and than turn back to the first side. So I can't start the Level. Did you know what I mean? I had the same problem once but I'm not sure how I fixed it. There is probably something wrong the the code in the CFG so maybe if you send the code to me I'll look through it. Edit: By the way you don't need nrm and txt files. The game only needs the npl file for the mission. To open and edit npls afterwards you need to have the nrm or txt file because the npl scripter cannot open npl. Edit2: I once had the problem when I tried to remove the power path from the Tool Store. When I tried to do this, I wasn't able to start any mission because the mission briefing console did not disappear. But I had an idea what the problem could be and (for me) my idea has been confirmed: the OL (Object List file) is empty or the Tool Store or (at least) a Rock Raider for the start is missing. Und damit du mich richtig verstehst, auch auf Deutsch: Ich hatte mal das gleiche Problem, aber leider weiß ich nicht mehr, wie ich das repariert habe. Wahrscheinlich stimmt was nicht mit dem Code in der CFG. Wenn du mir den mal schickst, könnte ich mal drübergucken. Edit: Übrigens brauchst du die nrm und txt Dateien nicht. Das Spiel braucht für die Mission nur die npl Datei. Zum Öffnen und Nachbearbeiten der NPLs braucht man aber die nrm oder txt Datei, weil der NPL Scripter npl nicht öffnen kann. Edit2: Irgendwann hatte ich mal das Problem gehabt, als ich die Stromverbindung von der Bauhütte entfernt habe. Dabei konnte ich dann gar kein Level mehr starten, weil diese Einsatzbesprechungskonsole nicht wegging. Aber das hat mich auf eine Idee gebracht, was das Problem sein könnte und meine Idee hat sich bestätigt (bei mir zumindest): Die OL (Object List Datei) ist leer oder die Bauhütte oder wenigstens 1 Rock Raider für den Missionsstart fehlt. Link to comment Share on other sites More sharing options...
Hammerkraft Posted July 26, 2014 Author Share Posted July 26, 2014 Okay, thank you alan. I will show in the Map, maybe I dont have a Rock Raider in it. Der cfg Code für Level 01 ist dieser: Level01 { FullName Die_Stunde_der_Bohrer AllowRename TRUE RecallOLObjects TRUE GenerateSpiders TRUE Video Avimbats.avi ; Amount of time before an emerge trigger can be reused. 1500 specifies 1 minute. EmergeTimeOut 2500.0 ;;;;; SURFACE TYPE ;;;;; BoulderAnimation ROCK MenuBMP LevelsGameLevelsLevel01.bmp,LevelsGameLevelsGLevel01.bmp,LevelsGameLevelsLevel01G.bmp TextureSet Textures::Rock RockFallStyle Rock EmergeCreature RockMonster ;;;;; SURFACE TYPE ;;;;; BlockSize 40 DigDepth 40 RoughLevel 6 RoofHeight 40 UseRoof YES SelBoxHeight 10 FogColourRGB 110:110:155 // ROCK FOG HighFogColourRGB 155:155:110 // ROCK FOG BlockPointersMap LevelsGameLevelsLevel01Tuto.map CryoreMap LevelsGameLevelsLevel01Cror.map SurfaceMap LevelsGameLevelsLevel01High.map PredugMap LevelsGameLevelsLevel01Dugg.map ErodeMap LevelsGameLevelsLevel01Erod.map EmergeMap LevelsGameLevelsLevel01Emrg.map TerrainMap LevelsGameLevelsLevel01Surf.map FallinMap LevelsGameLevelsLevel01Fall.map PathMap LevelsGameLevelsLevel01Path.map SafeCaverns TRUE OListFile LevelsGameLevelsLevel0101.ol PTLFile LevelsGameLevelsLevel0101.ptl ObjectiveText LanguagesObjectiveText.txt ObjectiveImage640x480 InterfaceBriefingPanelBriefingPanel.bmp,76,100 NERPFile LevelsGameLevelsLevel0101.npl NERPMessageFile LevelsGameLevelsLevel0101.txt NextLevel Levels::Level05 LevelLinks Levels::Level05,Levels::Level03 FrontEndX 265 FrontEndY 475 FrontEndOpen TRUE Priorities { AI_Priority_Crystal TRUE AI_Priority_Destruction TRUE AI_Priority_Clearing TRUE AI_Priority_Ore TRUE AI_Priority_Repair TRUE AI_Priority_GetIn TRUE AI_Priority_Construction TRUE AI_Priority_Reinforce TRUE AI_Priority_GetTool TRUE AI_Priority_Train TRUE AI_Priority_Recharge TRUE } Reward { Enable TRUE Modifier 2 Importance { Crystals 60 Timer 20 Oxygen 10 Caverns 10 } Quota { Crystals 5 Timer 900 Caverns 1 } } } Hammerkraft Link to comment Share on other sites More sharing options...
alan Posted July 26, 2014 Share Posted July 26, 2014 NERPMessageFile LevelsGameLevelsLevel0101.txt Existiert nun eine txt Datei von der NPL? Wenn ja, stimmt es so, wenn nein, kannst du diese Zeile löschen, weil die Datei, wie oben geschrieben, für das Spiel nutzlos ist. You don't need to have a Rock Raider in the OL if there is a Tool Store. One of these two must be present to start the level. A camera starting position is necessary for the Map Creator but the game can start without the coordinates for the camera in the OL. To be sure whether everything is alright you could also post the content of your OL file here. Link to comment Share on other sites More sharing options...
Hammerkraft Posted July 30, 2014 Author Share Posted July 30, 2014 Okay, it works now. I can start the Level, I only have now the Problems, that I dont have Rock Raiders or the Toolstore. I try to fix it. MfG Hammerkraft Link to comment Share on other sites More sharing options...
alan Posted July 30, 2014 Share Posted July 30, 2014 Normally you place RRs (and a Tool Store or only one of both) while creating the level in the Map Creator... so why are you missing them? Link to comment Share on other sites More sharing options...
Hammerkraft Posted July 30, 2014 Author Share Posted July 30, 2014 I placed Toolstore and RRss in all Levels, and when I show in Map Creator, there is toolstore and such. Hmm I get an Idea, maybe I forget to write the structures in the Config file. Hammerkraft Link to comment Share on other sites More sharing options...
Hammerkraft Posted August 9, 2014 Author Share Posted August 9, 2014 Hmm, I cant find the reason. I write some in the config, I make new npl file and more... Remake the Map.. But nothing works Does anyone have an Idea? MfG Hammerkraft Link to comment Share on other sites More sharing options...
aidenpons Posted August 11, 2014 Share Posted August 11, 2014 Hmm I get an Idea, maybe I forget to write the structures in the Config file. Objects only need to go in the .ol, which is exported with Map Creator. Have you tried simply recompiling your WADs or are you using the Data method? Also, something about encoding NPLs: I've noticed that if you stuff something up in the coding it will come up as 0 bytes and nothing will work. If that's the case (just check how big it is: if it's only 40 bytes that's fine, it just can't be 0) then re-check your coding. Link to comment Share on other sites More sharing options...
McJobless Posted August 11, 2014 Share Posted August 11, 2014 What you need to do is locate the source of the problem. Backup the files for Driller Night (Level 01). Replace the .dugg map with your one. Then delete the other maps and remove their lines in Lego.cfg. If it loads, add another map. Keep doing it until you know your maps work. Then try the script files. Link to comment Share on other sites More sharing options...
RockRaiderWolf Posted August 11, 2014 Share Posted August 11, 2014 Hmm, I cant find the reason. I write some in the config, I make new npl file and more... Remake the Map.. But nothing works Does anyone have an Idea? MfG Hammerkraft you need to quadruple check that in the config you have all the map file diretories and names correct in the config it sounds like your problem is definitively an error related to the .ol file. Also make sure that you do not have the objects/buildings/raiders placed on the outer most squares of your map as doing so would likely cause them to be covered over by solid rock automatically. In fact if you have your npl scripted right (aka set to fail if no raiders or toolstore) and you don't get a mission failed then that is almost surely the problem. Link to comment Share on other sites More sharing options...
aidenpons Posted August 12, 2014 Share Posted August 12, 2014 you need to quadruple check that in the config you have all the map file directories No, he doesn't need to do that; the game will crash if it can't find what it's looking for. Of course, he could have accidentally left it out completely... Also, if there's an error in the OL the game will crash AT THE END of the loading bar WHEN YOU GO INTO A LEVEL. It also won't come up with any error messages. Link to comment Share on other sites More sharing options...
RockRaiderWolf Posted August 12, 2014 Share Posted August 12, 2014 you need to quadruple check that in the config you have all the map file directories No, he doesn't need to do that; the game will crash if it can't find what it's looking for. Of course, he could have accidentally left it out completely... Also, if there's an error in the OL the game will crash AT THE END of the loading bar WHEN YOU GO INTO A LEVEL. It also won't come up with any error messages. Ah my bad. I was thinking back to when I accidently had it load the wrong .ol because I named the wrong one.... Anyway it wont always crash if there is an error in the .ol. some minor errors won't always crash it. Link to comment Share on other sites More sharing options...
Hammerkraft Posted August 17, 2014 Author Share Posted August 17, 2014 It dont crash. I only cant see or cant get RR or see the toolstore. I write all Map files in the Config. And in the map creator I placed a toolstore on a free place and RR near it, also with enough space. Hammerkraft Link to comment Share on other sites More sharing options...
RockRaiderWolf Posted August 18, 2014 Share Posted August 18, 2014 The best way for us to help you would be if you could upload copies of your lego.cfg and the level files so we can see if we can find the problem. Link to comment Share on other sites More sharing options...
Hammerkraft Posted August 24, 2014 Author Share Posted August 24, 2014 Heres a Copy of my cfg. Level 01: Level01 { FullName Die_Stunde_der AllowRename TRUE RecallOLObjects TRUE GenerateSpiders TRUE Video Avimbats.avi ; Amount of time before an emerge trigger can be reused. 1500 specifies 1 minute. EmergeTimeOut 2500.0 ;;;;; SURFACE TYPE ;;;;; BoulderAnimation ROCK MenuBMP LevelsGameLevelsLevel01.bmp,LevelsGameLevelsGLevel01.bmp,LevelsGameLevelsLevel01G.bmp TextureSet Textures::Rock RockFallStyle Rock EmergeCreature RockMonster ;;;;; SURFACE TYPE ;;;;; BlockSize 40 DigDepth 40 RoughLevel 6 RoofHeight 40 UseRoof YES SelBoxHeight 10 FogColourRGB 110:110:155 // ROCK FOG HighFogColourRGB 155:155:110 // ROCK FOG BlockPointersMap LevelsGameLevelsLevel01Tuto.map CryoreMap LevelsGameLevelsLevel01Cror.map SurfaceMap LevelsGameLevelsLevel01High.map PredugMap LevelsGameLevelsLevel01Dugg.map ErodeMap LevelsGameLevelsLevel01Erod.map EmergeMap LevelsGameLevelsLevel01Emrg.map TerrainMap LevelsGameLevelsLevel01Surf.map FallinMap LevelsGameLevelsLevel01Fall.map PathMap LevelsGameLevelsLevel01Path.map SafeCaverns TRUE OListFile LevelsGameLevelsLevel0101.ol PTLFile LevelsGameLevelsLevel0101.ptl ObjectiveText LanguagesObjectiveText.txt ObjectiveImage640x480 InterfaceBriefingPanelBriefingPanel.bmp,76,100 NERPFile LevelsGameLevelsLevel0101.npl NextLevel Levels::Level05 LevelLinks Levels::Level05,Levels::Level03 FrontEndX 265 FrontEndY 475 FrontEndOpen TRUE Priorities { AI_Priority_Crystal TRUE AI_Priority_Destruction TRUE AI_Priority_Clearing TRUE AI_Priority_Ore TRUE AI_Priority_Repair TRUE AI_Priority_GetIn TRUE AI_Priority_Construction TRUE AI_Priority_Reinforce TRUE AI_Priority_GetTool TRUE AI_Priority_Train TRUE AI_Priority_Recharge TRUE } Reward { Enable TRUE Modifier 2 Importance { Crystals 60 Timer 20 Oxygen 10 Caverns 10 } Quota { Crystals 5 Timer 900 Caverns 1 } } } And this is in my Level01 folder: I hope you can find the mistake. Hammerkraft Edit: Oh, I see now: "OListFile LevelsGameLevelsLevel0101.ol" but the map creator makes a "ObjectList.ol". I have two .ol. I try to start with OlistFile [...]ObjectList.ol. Hmm, I answer if it works... or not work Hammerkraft Link to comment Share on other sites More sharing options...
McJobless Posted August 24, 2014 Share Posted August 24, 2014 I'm sure there's other things, but just quickly, you have an extra '}' at the very end of your config. Link to comment Share on other sites More sharing options...
Hammerkraft Posted August 24, 2014 Author Share Posted August 24, 2014 EDIT: It Works! Its a bit buggy with the camera, but for the first time, it works. I finished the Level Link to comment Share on other sites More sharing options...
RockRaiderWolf Posted August 27, 2014 Share Posted August 27, 2014 Cool congratz! Link to comment Share on other sites More sharing options...
Recommended Posts