Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - DeadlyLintRoller

Pages: [1] 2 3 ... 7
1
DF General Discussion / Re: Future of the Fortress
« on: December 29, 2022, 05:39:13 pm »
Any thoughts on updating the encoding used for the text in raws? -- I'm having some trouble with this myself at the moment.  What about the Raws format itself? Besides updating the files themselves, how big of a lift would it be to move to something like XML or JSON?

2
DF Modding / Raws encoding
« on: December 29, 2022, 01:23:50 pm »
Hello, I've resurrected my old account here to cross post a question I posted on Reddit, and apologies for the crosspost, but it went two days without a reply.

https://www.reddit.com/r/DwarfFortressModding/comments/zwqzgl/raws_character_encoding/

Basically, I'm trying to figure out how to properly handle encoding of special characters in the raws. I just see the unicode question mark ("�") by default. I understand that the raws should be using CP437, or Windows-1252 encoding, but when I use visual studio code, and set those, it doesn't look right either (see the reddit post for those results).

I am using Ubuntu, so that just may be my problem. I've seen similar issues with Mac before.  I'm also still looking at 40.07.

I'm really just messing around to try to add classic Tolkien Dwarf character names into my language files.

Edit: I figured out the problem, and updated the reddit post. The issue was that I had previously opened and saved the file in the incorrect encoding, saving the unicode characters. I only realized this when I noticed that all the incorrectly encoded characters were the same, and started looking at the language_ELF.txt file for comparison, and the characters appeared differently. Those pesky elves are good for something I guess.

Reverting the language_DWARF.txt file to a fresh version, and then setting the encoding to CP 437 immediately upon opening it resolved the issue and allowed me to see the proper characters in my editor.

3
I've recovered my Forum Account from over a decade ago to come here and say I'm very excited about the Steam release!

4
DF General Discussion / Re: What's In Development?
« on: January 02, 2013, 11:23:21 pm »
Read the Dev log.

Adventure mode is much more interesting, fortress mode goes much deeper, with a better chance of running into fun.

Honestly, work and school has prevented me from actually playing much at all for the past year or so, but I still read the log regularly.

5
Creative Projects / Re: Programming Help Thread (For Dummies)
« on: October 09, 2012, 12:30:21 pm »
I'm not out to advocate java over other languages. Learning it was a pragmatic choice. I wanted to enroll in a reputable master's program with in-state tuition, which lead me to Virginia Tech's M.I.T. which is all about the java. Same goes for php, which I use for work. php is pretty bad in a lot of ways, but given that it was conceived by some random Dutch-Canadian guy for his personal website, can you blame it?

I don't yet have the experience to articulate the shortcomings/strengths it has over other languages, but I would agree that java was tough to start off on as a complete beginner programmer. There are a lot things happening that you just need to accept as the way it's done until you have built out the context within your knowledge to understand why that's happening. But, I'd guess that is true for many languages. Like anything it just requires experience.

In the DF skill level measuring system (assuming 1 xp = 1 hour practicing a given craft), I guess I am a Competent Programmer. but that time is split between php, javascript and java, plus other mundane tasks that relate to being a developer, but not necessarily actual coding, like setting up a vhost, releases, version control etc.

6
Creative Projects / Re: Programming Help Thread (For Dummies)
« on: October 08, 2012, 11:19:41 pm »
I'm back with more noob problems!

I've gotten far enough that I now have a single line file consisting of roughly 8 million hexadecimal numbers, separated by spaces, stored as text in a temporary file. Something like this, only longer:

Code: [Select]
ffff 5a7 53ef 816 54 e7f
I want to read these and convert them to decimal numbers. I've tested the function fscanf, but I'm not quite sure it does what I want it to do (my own testing has yielded strange results). What I want is simple, read 1 to 4 characters, treat them as a hexadecimal number and then write them to another file. Any advice?

I appreciate any and all advice!

Even though folk don't seem to take kindly to java around here. here is how to do it in that.

Code: [Select]
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.io.File;
import java.util.Scanner;
public class ReadHex {

public static void main(String[] args) throws FileNotFoundException {

Scanner input = new Scanner(new File(args[0]));

String output = "";
PrintWriter out = new PrintWriter(args[1]);

while(input.hasNext()){
String hex = input.next();
out.print(Integer.parseInt(hex,16)+" ");
}

out.close();

}
}

It takes arguments in through the command line, but you could modify for a prompt.

7
Creative Projects / Re: Programming Help Thread (For Dummies)
« on: October 07, 2012, 11:42:17 am »
My question is what IDE should I be using?

tmux/vim is the best =)

...Well, only if you are awesome at the command line, have some good dotfiles, and are a good enough programmer to recognize those silly mistakes right away. Seriously debating switching from Aptana for php development.

8
Creative Projects / Re: Programming Help Thread (For Dummies)
« on: October 06, 2012, 06:01:11 pm »
Here I am, 9:45 on a Saturday night, working on class for a Master's in IT. Anyone have any Java Programming Questions? I am also experienced in PHP, Javascript and Drupal Development.

If you need a question, this one never got adequately resolved.

I'm trying to make a program that will check a yahoo email. However, when I do emailChecker.recieve(), it gives me an error message. I am using JavaMail. The code looks like this:

Spoiler: Code (click to show/hide)

And the error message looks like this:
Spoiler (click to show/hide)

Thanks in advance for the help.

I do not, that explains it. Any idea how to check a gmail account? (The tutorial I found was for yahoo mail, so I tried that).

Thanks!


Looks like that was settled, although, I likely would have struggled to get to the bottom of that one. Sorry fo taking a week to respond. I'm just completely buried with work, school and in the process of trying to buy a house...


Rather than starting a new thread I thought I would ask here...

Is there a ~COMPLETE~ roguelike tutorial for C++?

Every single one I find is half finished...

is making a roguelike in C++ so soul crushing that even experienced programmers cant complete it? XD

I imagine that people make roguelike games out of hobby/practice, but being developers, their time is in high demand so that project is the first thing to go when work gets busy. I'd like to make a hobby out of developing a game in java, but know I'll never have the time...

I've kind of half payed attention to this thread over the past year, has this spawned any open source community projects? Are they available on github?

9
Life Advice / Re: Please tell us why you have applied for a job at...
« on: September 29, 2012, 10:42:11 pm »
Well, I guarantee you that the answer is not "Because I need a steady paycheck so I can pay my bills."

The correct answer is more likely to be "Because it has been my life dream to work at this company and my extreme ambition won't let me settle for anything less."

10
Life Advice / Re: What should i do about this? (recieved a deathtreat).
« on: September 29, 2012, 10:21:10 pm »
He's sounds like a douchebag trying to be an alpha male. It's an empty threat, he won't touch you.

11
Creative Projects / Re: Programming Help Thread (For Dummies)
« on: September 29, 2012, 09:39:36 pm »
oh, gosh... I'll answer SO questions if I'm already researching an issue, but I'd rather not spend half my time trying to translate the question into an intelligible english phrase.

12
Creative Projects / Re: To catch a mouse
« on: September 29, 2012, 09:14:35 pm »
Cats are adorable too. Here is mine. http://www.youtube.com/watch?v=tIWWLdxmCB8

13
General Discussion / Re: ♪ The Great Music Thread ♫
« on: September 29, 2012, 08:52:45 pm »
I listen to a lot of podcasts in the EDM genre. Trance Around the World at the moment. The DJ Brad Miller Podcast is also another good one.

For some out there stuff checkout "Music for Programming" http://musicforprogramming.net/

I'm also really into Daft Punk. Alive 2007 is one of those albums I could listen to on repeat for the rest of my life.

14
Creative Projects / Re: Programming Help Thread (For Dummies)
« on: September 29, 2012, 08:47:35 pm »
Here I am, 9:45 on a Saturday night, working on class for a Master's in IT. Anyone have any Java Programming Questions? I am also experienced in PHP, Javascript and Drupal Development.

15
DF General Discussion / Re: The worst bug - 34.07 poll
« on: April 01, 2012, 05:12:55 pm »
Dwarf the rapist stopped working :(

Pages: [1] 2 3 ... 7