Sign in to follow this  
Fipplarn

Quest Editing Error

Recommended Posts

Hello!

I just created an account here on techland forum cuz I need help, And I need it now..

I choosed to create my own map on Dying Light in the Dev tools as my degree project and I only got a week left to finish it..

 

Anyway... Today I was about to create my own quest so I looked around on some clips to learn more about it and when I was done writing my own quest I got theese wierd errors sying it can´t find the text script I created (It says:"Localized text doesn´t exist" when I write: -obj=(Name of the text Im reffering too in the text script). ) And I just can´t find a solution to the problem. The text script is in the correct folder and I am writing all the names correctly.

 

Someone that knows the problem and how I can fix it? it is kinda crucial that I get this to work.. Please help. 

Share this post


Link to post
Share on other sites

Follow the steps in this video

And make sure you have created a folder with the same

Name as the map name in your project/data/quest

Then save the pxsl in the mapname folder.

 

http://steamcommunity.com/workshop/discussions/-1/615085406655899969/?appid=239140#c405690850601469067

 

Also make sure your text is inside your project /data/

Text_steam_workshop.scr

 

And objectives in the quest code need to be added

With -obj=&myTextStringID&

Don ´t forget the &&

Edited by cr1m3

Share this post


Link to post
Share on other sites

I followed the steps and made sure that the map name was correct but it still wont work..

I dont understand why´it´s not working, everything is correct.. :(

Maybe post your quest code and text script content here and take a look

How obj are added in the code

http://steamcommunity.com/workshop/discussions/search/?appid=239140&gidforum=611703709831085393&include_deleted=1&q=Obj

 

Or try to create a new map then add some quest to see if it works in the new map.

 

Ps: project name is not the same as map name.

Edited by cr1m3

Share this post


Link to post
Share on other sites
Think you can find whats not working?

Here´s My content:

 

 !string(s,s)

 

string("MyPickaxe_Name", "Welcome, To something..!")

string("MyPickaxeEpilog_Name", "Epilog")

 

string("MyPickaxe_Desc", "first quest in our map")

string("MyPickaxeEpilog_Desc", "First quest")

 

string("MyPickaxe_Take", "Pick up your weapon!")

string("MyPickaxe_Go", "Swim across the water")

string("MyPickaxe_Kill", "Kill Mr. Bert")

 

string("MyPickaxeEpilog_Go", "Find the Revolver on the mountian")

 

 

 


QuestsDefinitions -level=map_shape 

    quest MyPickaxe -final=false

        ,take <<take>> QuestLootableItem MyPickaxe -obj=&MyPickaxe_Take& 

        ,goto <<swim>> QuestLootableItem Firstaid -distance=1 -obj=&MyPickaxe_Go&

        ,kill <<kill>> AISpawnBoxNumber bert -obj=&MyPickaxe_Kill&

 

    quest MyPickaxeEpilog -final=false

        ,goto <<go>> QuestLootableItem MyRevolver -distance=1 -obj=&MyPickaxeEpilog_Go& 

Edited by Fipplarn

Share this post


Link to post
Share on other sites

Hi there,

 

I've taken a look at your text script and compared it to one of my working examples. The only difference I can see is that you have 'string' with a Lower Case 's'.

I'd recommend changing it so that it is 'String' with an Upper Case 'S', and trying again. That is just a thought... could be something else entirely.

 

Here is my text script for reference:

 !String(s, s)

// Quest 'Escaping Death' Texts

String("Quest1_Name", "Escaping Death")
String("Quest1_Desc", "There has been a rumour going around Harran that a group of Runners known as the 'Squirrels' have found a way out of the quarantine. Follow their markings to get out!")
String("Quest1Part1_Leap", "Leap of Faith")
String("Quest1Part2_Escape", "Find a Way Out")
String("Quest1Part3_Kill", "Defeat the Goon")
String("Quest1Part4_Find", "Find the Keys")
String("Quest1Part5_Scale", "Scale the Dam")
String("Quest1Part6_Find", "Find Out What Happened Here")
String("Quest1Part7_Elev", "Take the Elevator to the Basement")
String("Quest1Part8_Elev", "Get Out of the Elevator")
String("Quest1Part9_Escape", "Find a Way Out")
String("Quest1Part10_Find", "Find the Keys")
String("Quest1Part11_Escape", "Find a Way Out")
String("Quest1Part12_Off", "Turn off the Power")
String("Quest1Part13_Escape", "Find a Way Out")
String("Quest1Part14_Run", "Run!")
String("Quest1Part15_Secure", "Secure the Safe House")

Also could you please provide us with your file paths for the files (quest and texts), and your file names.

 

Hopefully we can get you sorted quickly.

 

Cheers,

Squirrel.

Share this post


Link to post
Share on other sites

My text file is in the path:  Map_shape --> Data

And my quest file in:   Map_shape --> Data --> Quests --> Map_shape

 

The name of the text script is: texts_steam_workshop.scr

And the name of the .pxsl file is: firstquest.pxsl

 

I tried creating a new simple map with a simple Kill quest and it still didn´t work. Same problem keeps appearing. 

Share this post


Link to post
Share on other sites

The directory should be :

C:\Program Files (x86)\Steam\SteamApps\common\Dying Light\DevTools\workshop\My_Project\data\maps\MyMap

 

C:\Program Files (x86)\Steam\SteamApps\common\Dying Light\DevTools\workshop\My_Project\data\quests\MyMap

FirstQuest.pxsl

 

C:\Program Files (x86)\Steam\SteamApps\common\Dying Light\DevTools\workshop\My_Project\data\text_steam_workshop.scr

Edited by cr1m3

Share this post


Link to post
Share on other sites

Sorry if i get you wrong with the map path while you read this.

 

I edited the last post and the map folder is inside maps folder like this:

C:\Program Files (x86)\Steam\SteamApps\common\Dying Light\DevTools\workshop\My_Project\data\maps\MyMap

Share this post


Link to post
Share on other sites

Yeah I thought the problem was that I was using the same names too but I tried with a different name and it still didnt work.

And in the "how to" video you linked me before he did use the same names.. 

 

This is just really messed up why this is happening, Don´t understand why.. Even if I create a new map it is still the same problem..

Share this post


Link to post
Share on other sites

Hey,

 

Is there anyway you could share your map with us?

If we can run the quest without an issue then we'll be certain that something bizarre is happening on your end.

 

In the meantime I'd suggest Validating The Integrity of your Game Cache for Both Dying Light and The Developer Tools:

https://support.steampowered.com/kb_article.php?ref=2037-QEUH-3335

 

Cheers,

Squirrel.

Edited by Rabid Squirrel

Share this post


Link to post
Share on other sites

And in the "how to" video you linked me before he did use the same names..

 

The project name in the video have a "P" added at the end of the naming , just before to create the project.

 

And as Squirrel said , this is a good idea to share your map.

I hope this is not too late for you.

 

Also did you tried to install another user map in your tools

Then test if the quest is working.

 

To see which map have working quests, look here:

 

https://m.youtube.com/channel/UCS7sd3cnNmK81T_sw4hSjjw

Share this post


Link to post
Share on other sites

I can try creating a new quest and share the map tomorrow.

You can add me on steam to find it in my workshop (same name as here).

 

another thing worth mentioning is that Im working with a friend and we have like been taking turns of building on the map and after each turn we share it on the workshop to eachother so the other can just subscribe to it and then continue building. Maybe somewhere in that process everything chupacabra up.. But that doesnt explain why it wont work when I create a whole new project and creates a quest there..

Share this post


Link to post
Share on other sites

Hi there,

 

Sorry I took so long to get back to you.

 

I found a bunch of errors with your quest, I have fixed them here in the code below:

<<<?xml version="1.0"?>>>

QuestsDefinitions -level=map_shape
    quest MyPickaxe
        ,take <<take>> QuestLootableItem MyPickaxe -obj=&MyPickaxe_Take&
        ,kill <<kill>> AISpawnBoxNumber bert -obj=&MyPickaxe_Kill&
    quest MyPickaxeEpilog  -parent=MyPickaxe -glued=true -final=true
        ,semaphore <<no creds>>

For interest's sake, your errors as follows:

  • Spaces are not valid indents, so the games engine was reading them as spaces and throwing errors.
  • The Quest 'MyPickaxe' was throwing an error because it didn't have a quest parent, to fix this I made it the parent of the Epilogue Quest with this code: "-parent=MyPickaxe -glued=true".
  • "-obj=&MyPickaxe_Obj&" > Wasn't a valid text in the 'texts_steam_workshop.scr' I replaced it with "-obj=&MyPickaxe_Take&"

Also I noticed that your 'texts_steam_workshop.scr' was reading as a '.txt' file and not a '.scr' file. To fix this I opened it up, click 'File' > 'Save as' > 'Save as type' > 'All Files' > Save.

 

I tested it on my end, and once I made the changes everything was working perfectly.

 

Cheers,

Squirrel.

Share this post


Link to post
Share on other sites

Well, I did as you said and the errors dissapeared.

BUT then suddenly my game crashed and now everytime I try to start it it just crashes when it gets to the point of "starting textures loading process" (Or something similiar to that)

 

Rabid Squirrel, Did you save my map and its working correctly? Think you can share it with me? I really don´t have time to re-do everything from my last save point. 

Share this post


Link to post
Share on other sites

Well, I did as you said and the errors dissapeared.

BUT then suddenly my game crashed and now everytime I try to start it it just crashes when it gets to the point of "starting textures loading process" (Or something similiar to that)

 

Rabid Squirrel, Did you save my map and its working correctly? Think you can share it with me? I really don´t have time to re-do everything from my last save point.

Backup your actual project folder and delete it from the:

C:\Program Files (x86)\Steam\SteamApps\common\Dying Light\DevTools\workshop\

Directory.

 

Now subscribe on steam workshop to your own map object.

 

Then load the tools and install the project in the wizard list.

 

But as i said in steam Pm i tried to load your map in the devtools but loading is hanging at 75%.

I can play it in Dying light player only.

 

Maybe my computer is too slow and i should wait but if rabid was able to load it?

 

Maybe he fixed the code manually?

 

I mean i can't confirm if the workshop version is broken

Or not.

So if others can load it it's ok.

Share this post


Link to post
Share on other sites

Yep all is fine and there ´s no quest on the hud.

 

But my pc is running slowly cause there ´s many trees and houses in wide open area.

 

Anyway, i like the map , well done.

Edited by cr1m3

Share this post


Link to post
Share on other sites

Yeah,

 

It loads no problem, and I did save it, if you want I'll just friend you on steam quick and share with friends only, you should be able to grab it then.

 

Cheers,

Squirrel.

Edited by Rabid Squirrel

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this