#help with map generator.

1 messages · Page 1 of 1 (latest)

keen mauve
#

So i've been doing a procedural map generator and until now its going ok, but the problem is that for some reason, THE LAST PART of the script is making problems, basically on the part of cloning the rooms models and positioning them on the workspace, for some reason, rooms that are type 2 (rooms that have only 2 exits) do not get cloned when it gets to the specific part of the map on the print

#

soo uhh

#

its a 700 lines code but ill do my best to give just the important stuff

#

ts is where it clones the room models

#

now its a sequence from top to bottom of the important stuff that should be where the problem is

meager herald
#

maybe negative coordinate?

keen mauve
#

nah

#

the coordinates go from 0 to 19

#

actually 0 to 18 but its 19 spots

meager herald
#

i assume room has bad position rather than not generating, you didnt specify

#

maybe do debug trace on that

keen mauve
#

oh sorry

#

ok uhh

#

so

#

basicly

keen mauve
#

and when i generated the map

#

and searched for the tag of the missing rooms on the explorer

#

the rooms simply dont exist

meager herald
#

so add a print for each room and check what is and isn't spawning

keen mauve
#

leme just send the last prints

meager herald
#

or you can filter for some condition and put a breakpoint on it

keen mauve
#

if u want i can explain what are each one of the prints

meager herald
#

looks like scp containment breach, good luck with that hehe

keen mauve
#

yep

#

after printing

#

it prints ALL of the rooms

#

and not those specifically

#

it just

#

dont recognizes them?

#

yep

#

i think i found the problem but i dont have any idea of how it happened

#

so

#

on the console

small raftBOT
#

studio** You are now Level 9! **studio

keen mauve
#

there is 43 rooms 2 on the MapRoom and room 2 ammount, and on the actual map, there is 47 rooms 2

#

for some fucking reason

meager herald
keen mauve
trim orchid
small raftBOT
#

studio** You are now Level 5! **studio

keen mauve
#

i already sended it

keen mauve
#

so i basically got it, but not entirely. basically this is an example of how "maplayout" looks like and the print is the function that defines the rooms that will be built.and for some reason some rooms 2 do not get into the "ROOM2" table from "MapRoom" for some reason

#

so

#

the space 6 / 4 exists on the maplayout

#

but it doesnt get into the MapRoom table

keen mauve
#

i still dont know what is happening 😭

keen mauve
#

yeah ok

#

now i know

#

exactly what is happening

#

i will discover how to fix it