Author Topic: Question about 7DRL rules - previously written code?  (Read 16277 times)

ekolis

  • 7DRL Reviewer
  • Rogueliker
  • *
  • Posts: 186
  • Karma: +0/-0
  • get ye dennis
    • View Profile
    • Ed's home page
    • Email
Question about 7DRL rules - previously written code?
« 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!
« Last Edit: February 12, 2016, 09:03:50 PM by ekolis »
The Ed draws near! What dost thou deaux?

>EAT SANDVICH

dscreamer

  • Rogueliker
  • ***
  • Posts: 65
  • Karma: +0/-0
    • View Profile
Re: Question about 7DRL rules - previously written code?
« Reply #1 on: February 12, 2016, 09:46:15 PM »
Absolutely fine. Go for it!

ekolis

  • 7DRL Reviewer
  • Rogueliker
  • *
  • Posts: 186
  • Karma: +0/-0
  • get ye dennis
    • View Profile
    • Ed's home page
    • Email
Re: Question about 7DRL rules - previously written code?
« Reply #2 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)... :(
The Ed draws near! What dost thou deaux?

>EAT SANDVICH

jere

  • 7DRL Reviewer
  • Rogueliker
  • *
  • Posts: 233
  • Karma: +0/-0
    • View Profile
    • Email
Re: Question about 7DRL rules - previously written code?
« Reply #3 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.
Golden Krone Hotel -- available on Steam Early Access now

Avagart

  • 7DRL Reviewer
  • Rogueliker
  • *
  • Posts: 567
  • Karma: +0/-0
    • View Profile
Re: Question about 7DRL rules - previously written code?
« Reply #4 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.

ekolis

  • 7DRL Reviewer
  • Rogueliker
  • *
  • Posts: 186
  • Karma: +0/-0
  • get ye dennis
    • View Profile
    • Ed's home page
    • Email
Re: Question about 7DRL rules - previously written code?
« Reply #5 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... :(
The Ed draws near! What dost thou deaux?

>EAT SANDVICH

Avagart

  • 7DRL Reviewer
  • Rogueliker
  • *
  • Posts: 567
  • Karma: +0/-0
    • View Profile
Re: Question about 7DRL rules - previously written code?
« Reply #6 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?

ekolis

  • 7DRL Reviewer
  • Rogueliker
  • *
  • Posts: 186
  • Karma: +0/-0
  • get ye dennis
    • View Profile
    • Ed's home page
    • Email
Re: Question about 7DRL rules - previously written code?
« Reply #7 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!
The Ed draws near! What dost thou deaux?

>EAT SANDVICH

Paul Jeffries

  • 7DRL Reviewer
  • Rogueliker
  • *
  • Posts: 257
  • Karma: +1/-0
    • View Profile
    • Vitruality.com
Re: Question about 7DRL rules - previously written code?
« Reply #8 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.

Naburimannu

  • Newcomer
  • Posts: 10
  • Karma: +0/-0
    • View Profile
    • Email
Re: Question about 7DRL rules - previously written code?
« Reply #9 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.

  • I wrote stacking objects over this last weekend, which breaks the inventory size limit as written in a slightly player-friendly way but could be patched to match the old behavior with one or two lines of code. Back-stairs and persistent levels are nominally exploitable in the original tutorial ruleset, since there are times when you can go downstairs, which gives free healing (the first time), then backtrack to farm xp / get an object you weren't healthy enough to get. In practice this doesn't make a difference because the tutorial is almost always easily winnable.
« Last Edit: February 24, 2016, 08:42:13 PM by Naburimannu »

CaptainKraft

  • 7DRL Reviewer
  • Rogueliker
  • *
  • Posts: 60
  • Karma: +0/-0
    • View Profile
Re: Question about 7DRL rules - previously written code?
« Reply #10 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!
Build a man a fire, and he'll be warm for a day.
Set a man on fire, and he'll be warm for the rest of his life.

Krice

  • (Banned)
  • Rogueliker
  • ***
  • Posts: 2316
  • Karma: +0/-2
    • View Profile
    • Email
Re: Question about 7DRL rules - previously written code?
« Reply #11 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.

Samildanach

  • 7DRL Reviewer
  • Rogueliker
  • *
  • Posts: 453
  • Karma: +1/-0
    • View Profile
    • The Indie Ocean
Re: Question about 7DRL rules - previously written code?
« Reply #12 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.