Kerilynne Posted February 17, 2014 Share Posted February 17, 2014 Bassair and I are working on some custom professions for our gameplay, and when we try to put in related spawn points... ...the game totally ignores it. We're not translating our coordinates wrong (that I know of O_O;;;; ) so I was wondering if something was hinky with our code...local function initBKSpawn() local spawn; spawn = { { --Middle of Nowhere worldX = 37, worldY = -98, posX = 134, posY = 208, }, { ---Middle of Nowhere worldX = 37, worldY = 35, posX = -66, posY = -112, },(More coordinates...)}BaseGameCharacterDetails.spawnPoint.MuldraughKY.streetkid = spawnPoint;endEvents.OnGameBoot.Add(DoProfessions);Events.OnGameStart.Add(initBKSpawn)I'm probably doing something silly like adding wrong or missing a symbol... Link to comment Share on other sites More sharing options...
RoboMat Posted February 18, 2014 Share Posted February 18, 2014 I had the same problem with my lockpicking mod - It's a bug with the 23 build. Kerilynne 1 Link to comment Share on other sites More sharing options...
Kerilynne Posted February 18, 2014 Author Share Posted February 18, 2014 Ewww! Good to know it wasn't just me screwing up our code! O_O Thanks for the prompt feedback :3 I hope this gets cleared up soon! Link to comment Share on other sites More sharing options...
RoboMat Posted February 18, 2014 Share Posted February 18, 2014 No problem. I'll move this thread to the support / bugs section. Just out of curiosity. Have you tried putting in pre-made spawnpoints (from the vanilla professions)? Link to comment Share on other sites More sharing options...
Kerilynne Posted February 18, 2014 Author Share Posted February 18, 2014 I have not. That's my next task... I'll probably try the unemployed coordinates. And thanks for the thread move. Link to comment Share on other sites More sharing options...
RoboMat Posted February 18, 2014 Share Posted February 18, 2014 Actually. Scrap what I said above EasyP just pointed out, that you might be initialising the spawn points too late. Try OnGameBoot instead of OnGameStart. Events.OnGameBoot.Add(initBKSpawn) Link to comment Share on other sites More sharing options...
bassair Posted February 18, 2014 Share Posted February 18, 2014 Hi, Kerilynne's collaborator here I changed it to OnGameBoot but it didn't make a difference. All the spawn points we picked for this profession were the middle of nowhere, and it spawned me in a house like always. Link to comment Share on other sites More sharing options...
RoboMat Posted February 18, 2014 Share Posted February 18, 2014 Ah now it makes sense. You have a mistake in your code.BaseGameCharacterDetails.spawnPoint.MuldraughKY.streetkid = spawnPoint;needs to be BaseGameCharacterDetails.spawnPoint.MuldraughKY.streetkid = spawn;as you want to save the table with the spawn points Btw. I have information how to do custom professions in my tutorial. You should give it a look if you haven't done so already: http://theindiestone.com/forums/index.php/topic/61-robomats-modding-tutorials-updated-12112013/#IV Link to comment Share on other sites More sharing options...
bassair Posted February 18, 2014 Share Posted February 18, 2014 It worked!! Thank you so much. We had a horrible feeling i was something as simple as that. But it's really difficult to see an error when you've been staring at it for hours. (Hours.) Thank you ever so much, RoboMat! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now