Closed Trevoke closed 9 years ago
See if you can walk around the mud and figure out which room doesn't work. The error suggests one of the rooms is not derived from Room.
The broken room is the Restaurant.
I'm not sure what I'm doing wrong. https://github.com/Reddit-Mud/RMUD-DB/blob/master/static/port-ivy/Restaurant.cs
You need to import scenery_lamp to use it. Check out https://github.com/Reddit-Mud/RMUD-DB/blob/master/static/port-ivy/bed-and-breakfast/hallway.cs
The comment at the top is important. It's a comment so that visual studio can compile it.. but it's also how scripts import other scripts.
It doesn't match the error but who knows?
Interesting! Does the order of comments matter / should I remove the 'generated by ...' comment ? (alternatively -- what are the keywords to search for to learn about this?)
On Wed Nov 19 2014 at 10:28:28 PM Blecki notifications@github.com wrote:
You need to import scenery_lamp to use it. Check out https://github.com/Reddit-Mud/RMUD-DB/blob/master/static/port-ivy/bed-and-breakfast/hallway.cs
The comment at the top is important. It's a comment so that visual studio can compile it.. but it's also how scripts import other scripts.
It doesn't match the error but who knows?
— Reply to this email directly or view it on GitHub https://github.com/Reddit-Mud/RMUD/issues/115#issuecomment-63756221.
Added the //import scenery_lamp comment and fixed the error.
Okay -- in truth I had made TWO mistakes. I was missing a semicolon AND I needed to add the import comment.
11/18/14 22:12:41 -- Compiled database/static/settings.cs in 846.773 milliseconds.
Bulk compilation enabled. 11/18/14 22:12:42 -- /tmp/29619aa7/49ef73f3.0.cs(1880,6) : error CS1525: Unexpected symbol `OpenLink'
11/18/14 22:12:42 -- 1 errors in /* /tmp/29619aa7/49ef73f3.0.cs(1880,6) : error CS1525: Unexpected symbol `OpenLink'
Bulk compilation failed. Using ad-hoc compilation as fallback.