Temple of The Roguelike Forums

Game Discussion => 7DRLs => Topic started by: ekolis on February 12, 2016, 08:02:49 PM

Title: Question about 7DRL rules - previously written code?
Post by: ekolis on February 12, 2016, 08:02:49 PM
Hey :) Missed out on the challenge last year, and I'd like to get back into it with what might be my most ambitious 7DRL yet... but since it's been a while, I want to clarify one rule.

It is permissible to use previously written code for a 7DRL, right? Provided of course that you didn't create that code specifically for use with this 7DRL! I have some utility classes I wrote for another project (one to roll dice, and another to load simple text configuration files, and probably others I haven't thought of yet), and I'd rather not have to write those again from scratch.

In case you were wondering what my idea is, it's something I've been bouncing around with this one guy on IRC for a while... basically, it's a roguelike version of Recettear! :D

Thanks! :)

edit: oops, should I have posted this in the Challenges forum? If so, would a mod please move it there? Thanks!
Title: Re: Question about 7DRL rules - previously written code?
Post by: dscreamer on February 12, 2016, 09:46:15 PM
Absolutely fine. Go for it!
Title: Re: Question about 7DRL rules - previously written code?
Post by: ekolis on February 13, 2016, 04:10:20 PM
Oh geez, now I feel like I REALLY cheated... I was chatting with some folks on #rgrd and mentioned I was planning on using the C# console class for display, and they said it was rather slow, so I decided to test it out myself and see how bad it is... Well, it's not awful, but I did have to make a few tweaks... Nothing too roguelike specific, but close enough! I rendered a bunch of random characters to the screen, and noticed that they were scrolling up the screen even though I was just rendering one at a time, so I got some help on that to make it work properly (apparently you can't render to the lower right corner or it scrolls)... :(
Title: Re: Question about 7DRL rules - previously written code?
Post by: jere on February 15, 2016, 04:56:02 PM
IMHO, anything is kosher as long as you are very honest about it. The worst thing that you could do is be misleading about using previously made assets or code.

Something like that has happened before and people were pretty upset.
Title: Re: Question about 7DRL rules - previously written code?
Post by: Avagart on February 15, 2016, 05:20:03 PM
IMO there is nothing bad about using previously written code... If this code is form of library / engine / or you just use fragments of previously written game / application. Some of most succesful 7DRL-devs like Jeff Lait or Numenor has own engine / framework and they, as I think, 'new game into already made frames'. And they roguelikes are (usually) great and polished - among others due to using previously polished 'general code'.

But it would be really bad if you would *work on this specific roguelike* before 7DLR challange.
Title: Re: Question about 7DRL rules - previously written code?
Post by: ekolis on February 15, 2016, 05:47:39 PM
Yeah, I feel like what I did with testing out C#'s console functionality came REALLY darn close... :(
Title: Re: Question about 7DRL rules - previously written code?
Post by: Avagart on February 15, 2016, 06:19:00 PM
Hm, if I were you I would declare it and use this code - at least it is about 'skeleton', 'frame' of roguelike, not about 'heart' or 'body', isn't it?
Title: Re: Question about 7DRL rules - previously written code?
Post by: ekolis on February 17, 2016, 01:32:22 AM
Well, it's not something I was actually going to use, more of a proof of concept to see if the general sort of thing I wanted to do was even feasible ;) So I guess it's not really that big a deal anyway... Not to mention, I spent maybe 15 minutes on this (well, and I asked around on IRC about a few things), so I could have easily done the same on the first day!
Title: Re: Question about 7DRL rules - previously written code?
Post by: Paul Jeffries on February 17, 2016, 09:22:14 PM
I wouldn't worry about it too much; 7DRL is largely a personal challenge with no prize except (possibly) recognition, so the only person you can really cheat is yourself.  The important thing so far as other people are concerned is just to be honest about what was done in the week and what wasn't - the only major bit of controversy I remember was one group who claimed to have made all their art during the challenge when the datestamps on their asset files showed differently.
Title: Re: Question about 7DRL rules - previously written code?
Post by: Naburimannu on February 24, 2016, 07:12:44 PM
I'm doing an awful lot of coding before the 7DRL starts. But I'm doing it in public (https://github.com/Naburimannu/libtcodpy-tutorial), starting from Jice's Python tutorial for libtcod, and writing approximately zero new gameplay. It's all refactoring, ease-of-use, UI improvements, mouse vs keyboard support: engine work instead of game work.

Title: Re: Question about 7DRL rules - previously written code?
Post by: CaptainKraft on February 24, 2016, 08:24:00 PM
Almost all previously written code should be fine. Just use your best judgement about the idea for the game. If you're trying to implement systems in your engine that only came up because you were planning your 7drl game, I'd say that's pushing it and you should probably stop. Making a tool (your engine in this case) easier to use or better before the jam is totally fine imo.

I also don't think people should be making anyone feel bad about using preexisting code. It's only when someone is obviously trying to cheat for personal gain that it becomes an issue. Even then... it's just a 7 day jam to have some fun and perhaps better yourself.

Good luck!
Title: Re: Question about 7DRL rules - previously written code?
Post by: Krice on February 29, 2016, 09:50:02 PM
I'm guessing almost every game that is finished during 7DRL is using some kind of code or library written previously. Not to forget planning, I think good planning is important to make it much easier.
Title: Re: Question about 7DRL rules - previously written code?
Post by: Samildanach on March 01, 2016, 05:14:49 PM
I'm guessing almost every game that is finished during 7DRL is using some kind of code or library written previously.

Yes, certainly most of the very polished 7DRL successes either re-use previous code or make of an existing engine such as the T-Engine. There simply isn't time during 7DRL, for most people at least, to design and implement an enjoyable game and code the entire thing from scratch.

The thing to remember here is that there's no prize or anything. It's not a contest, it's a challenge. If you don't feel you're cheating then you probably aren't. You are your own judge.

Not to forget planning, I think good planning is important to make it much easier.

Absolutely. The biggest mistake that PTrefall and I made last year was not doing enough prep before the start of the week.