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.

Topics - InfernoZeus

Pages: [1]
1
Curses / Looking into implementing canceling the renting of an apartment
« on: February 11, 2011, 12:26:28 am »
Something that I've noticed myself, and seems to be asked a lot, is if its possible to stop renting an apartment. I thought I'd take a look at the code and see how difficult it would be to add in. (If anyone has already done anything towards this, just gimme a heads up and I'll leave it alone)

As far as I can tell it seems like it should be pretty simple, but I wasn't sure how to go about charging for the number of days that the apartment had already been in use that month. It wouldn't make sense not to charge anything as people could just cancel right before payment was due, and then take it out again the next month. Does the code currently track when someone started renting the apartment?

Also, is the right place to ask questions about the code itself? The sourceforge page doesn't seem to have an issue list like Google Code does.

2
Curses / Building from source in Ubuntu - Solution found!
« on: February 09, 2011, 01:23:29 pm »
Edit: I found the problem - I'd been trying to run it in a 64-bit version of Ubuntu, which doesn't seem to work. As soon as I switched over to a 32-bit version, everything worked fine.



I checked out a copy of the code from SVN, and noticed that there are two files on how to build/install LCS (INSTALL and LINUX_README.txt) - as far as I can tell, INSTALL is a auto-generated file, whereas LINUX_README.txt contains the correct instructions. I followed the instructions in LINUX_README.txt
Code: [Select]
bootstrap
./configure
make
but when I tried to run crimesquad, it shows the following errors:
Code: [Select]
*** buffer overflow detected ***: src/crimesquad terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x37)[0x7f535cdd7537]
/lib/libc.so.6(+0xfe3f0)[0x7f535cdd63f0]
/lib/libc.so.6(__fread_chk+0x15b)[0x7f535cdd6bcb]
src/crimesquad[0x42f30b]
src/crimesquad[0x405ab3]
/lib/libc.so.6(__libc_start_main+0xfe)[0x7f535ccf6d8e]
src/crimesquad[0x4039a9]
======= Memory map: ========
00400000-00573000 r-xp 00000000 08:01 29493                              /home/ben/lcsgame/trunk/src/crimesquad
00772000-00773000 r--p 00172000 08:01 29493                              /home/ben/lcsgame/trunk/src/crimesquad
00773000-00775000 rw-p 00173000 08:01 29493                              /home/ben/lcsgame/trunk/src/crimesquad
00775000-00f6c000 rw-p 00000000 00:00 0
0268f000-026d0000 rw-p 00000000 00:00 0                                  [heap]
7f535cad4000-7f535cad6000 r-xp 00000000 08:01 152244                     /lib/libdl-2.12.1.so
7f535cad6000-7f535ccd6000 ---p 00002000 08:01 152244                     /lib/libdl-2.12.1.so
7f535ccd6000-7f535ccd7000 r--p 00002000 08:01 152244                     /lib/libdl-2.12.1.so
7f535ccd7000-7f535ccd8000 rw-p 00003000 08:01 152244                     /lib/libdl-2.12.1.so
7f535ccd8000-7f535ce52000 r-xp 00000000 08:01 152237                     /lib/libc-2.12.1.so
7f535ce52000-7f535d051000 ---p 0017a000 08:01 152237                     /lib/libc-2.12.1.so
7f535d051000-7f535d055000 r--p 00179000 08:01 152237                     /lib/libc-2.12.1.so
7f535d055000-7f535d056000 rw-p 0017d000 08:01 152237                     /lib/libc-2.12.1.so
7f535d056000-7f535d05b000 rw-p 00000000 00:00 0
7f535d05b000-7f535d070000 r-xp 00000000 08:01 129877                     /lib/libgcc_s.so.1
7f535d070000-7f535d26f000 ---p 00015000 08:01 129877                     /lib/libgcc_s.so.1
7f535d26f000-7f535d270000 r--p 00014000 08:01 129877                     /lib/libgcc_s.so.1
7f535d270000-7f535d271000 rw-p 00015000 08:01 129877                     /lib/libgcc_s.so.1
7f535d271000-7f535d2f3000 r-xp 00000000 08:01 152245                     /lib/libm-2.12.1.so
7f535d2f3000-7f535d4f2000 ---p 00082000 08:01 152245                     /lib/libm-2.12.1.so
7f535d4f2000-7f535d4f3000 r--p 00081000 08:01 152245                     /lib/libm-2.12.1.so
7f535d4f3000-7f535d4f4000 rw-p 00082000 08:01 152245                     /lib/libm-2.12.1.so
7f535d4f4000-7f535d5dc000 r-xp 00000000 08:01 395994                     /usr/lib/libstdc++.so.6.0.14
7f535d5dc000-7f535d7db000 ---p 000e8000 08:01 395994                     /usr/lib/libstdc++.so.6.0.14
7f535d7db000-7f535d7e3000 r--p 000e7000 08:01 395994                     /usr/lib/libstdc++.so.6.0.14
7f535d7e3000-7f535d7e5000 rw-p 000ef000 08:01 395994                     /usr/lib/libstdc++.so.6.0.14
7f535d7e5000-7f535d7fa000 rw-p 00000000 00:00 0
7f535d7fa000-7f535d83a000 r-xp 00000000 08:01 129896                     /lib/libncurses.so.5.7
7f535d83a000-7f535da39000 ---p 00040000 08:01 129896                     /lib/libncurses.so.5.7
7f535da39000-7f535da3d000 r--p 0003f000 08:01 129896                     /lib/libncurses.so.5.7
7f535da3d000-7f535da3e000 rw-p 00043000 08:01 129896                     /lib/libncurses.so.5.7
7f535da3e000-7f535da5e000 r-xp 00000000 08:01 145652                     /lib/ld-2.12.1.so
7f535dc3d000-7f535dc43000 rw-p 00000000 00:00 0
7f535dc5b000-7f535dc5e000 rw-p 00000000 00:00 0
7f535dc5e000-7f535dc5f000 r--p 00020000 08:01 145652                     /lib/ld-2.12.1.so
7f535dc5f000-7f535dc60000 rw-p 00021000 08:01 145652                     /lib/ld-2.12.1.so
7f535dc60000-7f535dc61000 rw-p 00000000 00:00 0
7fff2c2bc000-7fff2c2dd000 rw-p 00000000 00:00 0                          [stack]
7fff2c3ff000-7fff2c400000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Aborted

Has anyone come across this problem before? Are there any prerequisites that I could be missing? I'm trying to build on Ubuntu 10.10 running in a VM. Thanks

3
DF Gameplay Questions / Wooden Block Stockpiles
« on: July 23, 2010, 04:33:55 pm »
Why aren't Wooden blocks put into Bar/Block stockpiles? Also, where can I find them in the Stockpile settings list? TIA

Edit: Typo..

4
DF Gameplay Questions / Questions about Fishing
« on: July 19, 2010, 10:14:34 am »
I'm trying to set up my Fishing 'industry' and I've got a couple of questions about it. Do the fishers bring back the fishes to the fortress? Or is it like woodcutting where they just leave it to be hauled by someone else? Also, what type of hauling is Fish under? TIA

5
DF Gameplay Questions / Confusing Miner Pathfinding
« on: July 19, 2010, 08:05:01 am »
I just started playing DF and it's been great fun so far. It's amazing that it's mostly the work of one guy. Anyway, I've got a quick question.

Does anyone know how the Miner's work out which square they're going to mine out next? They seem to do it in a very round-a-bout way, and spend more time walking back and forth between tiles than actually mining. Is there anything I can do to help avoid that? TIA

Pages: [1]