![]() |
#11 |
Rookie
Join Date: Apr 2011
Posts: 18
![]() |
|
![]() |
![]() |
![]() |
#12 | |
Adept
Join Date: Jul 2007
Location: St George Utah, USA
Posts: 244
![]() |
Quote:
In the player/calcs.c you need to change the line /* * Stat Table (INT) -- Magic devices */ static const byte adj_int_dev[STAT_RANGE] = { to this: /* * Stat Table (INT) -- Magic devices * apw -- screensaver needs extern */ extern const byte adj_int_dev[STAT_RANGE] = { Add the 'extern' entry (as seen above) in your player/calcs.c file to each of the following (they are listed in externs.h): extern const byte adj_dex_ta[]; extern const byte adj_str_td[]; extern const byte adj_dex_th[]; extern const byte adj_str_th[]; extern const byte adj_dex_blow[]; extern const byte adj_dex_dis[]; extern const byte adj_int_dis[]; extern const byte adj_int_dev[]; extern const byte adj_wis_sav[]; extern const byte adj_str_dig[]; extern const byte adj_str_wgt[]; extern const int adj_con_mhp[]; Andrew |
|
![]() |
![]() |
![]() |
#13 | |
Prophet
Join Date: Apr 2007
Location: Climbing up from hole I just dug.
Posts: 4,096
![]() |
Quote:
|
|
![]() |
![]() |
![]() |
#14 |
Angband Devteam member
|
|
![]() |
![]() |
![]() |
#15 | |
Rookie
Join Date: Apr 2011
Posts: 18
![]() |
Quote:
Code:
Last login: Wed Apr 13 17:31:01 on ttys000 cdJTWiMac:~ jtw$ cd Downloads/angband-3.2.0/src JTWiMac:src jtw$ ls HEADER dungeon.c randname.o Makefile dungeon.o save.c Makefile.inc effects.c savefile.c Makefile.nds effects.h savefile.h Makefile.nmake effects.o score.c Makefile.osx externs.h signals.c Makefile.src files.c snd-sdl.c Makefile.std files.h spells.h Makefile.win files.o spells1.c angband.h game-cmd.c spells2.c angband.ico game-cmd.h squelch.c angband.man game-cmd.o squelch.h attack.c game-event.c store.c attack.h game-event.h store.h attack.o game-event.o tables.c autoconf.h.in generate.c target.c birth.c generate.h target.h birth.h generate.o tests birth.o gtk textui.h borg.txt h-basic.h trap.c borg1.c history.c trap.h borg1.h history.h types.h borg2.c history.o ui-birth.c borg2.h init.h ui-birth.h borg3.c init2.c ui-event.h borg3.h init2.o ui-knowledge.c borg4.c list-blow-effects.h ui-menu.c borg4.h list-blow-methods.h ui-menu.h borg5.c list-effects.h ui-options.c borg5.h list-mon-flags.h ui-spell.c borg6.c list-mon-spells.h ui.c borg6.h list-object-flags.h ui.h borg7.c list-player-flags.h util.c borg7.h load-old.c variable.c borg8.c load-old.o win borg8.h load.c wiz-spoil.c borg9.c load.o wiz-stats.c borg9.h macro.c wizard.c button.c macro.h wizard.h button.h macro.o x-char.c button.o main-crb.c x-char.h cave.c main-gcu.c x-spell.c cave.h main-nds.c xtra2.c cave.o main-sdl.c xtra3.c cmd-misc.c main-test.c z-bitflag.c cmd-misc.o main-win.c z-bitflag.h cmd-obj.c main-x11.c z-debug.h cmd-obj.o main-xxx.c z-file.c cmd0.c main.c z-file.h cmd0.o main.h z-form.c cmd1.c monster z-form.h cmd1.o nds z-msg.c cmd2.c object z-msg.h cmd2.o option.c z-quark.c cmd3.c option.h z-quark.h cmd3.o option.o z-rand.c cmd4.c osx z-rand.h cmd4.o parser.c z-term.c cmds.h parser.h z-term.h config.h parser.o z-textblock.c death.c pathfind.c z-textblock.h death.o pathfind.o z-type.c debug.c player z-type.h debug.h prefs.c z-util.c debug.o prefs.h z-util.h defines.h prefs.o z-virt.c doc randname.c z-virt.h JTWiMac:src jtw$ make -f Makefile.osx ls: autoconf.h: No such file or directory CC player/calcs.c player/calcs.c:78: warning: ‘adj_int_dev’ initialized and declared ‘extern’ player/calcs.c:124: warning: ‘adj_wis_sav’ initialized and declared ‘extern’ player/calcs.c:171: warning: ‘adj_dex_dis’ initialized and declared ‘extern’ player/calcs.c:218: warning: ‘adj_int_dis’ initialized and declared ‘extern’ player/calcs.c:264: warning: ‘adj_dex_ta’ initialized and declared ‘extern’ player/calcs.c:310: warning: ‘adj_str_td’ initialized and declared ‘extern’ player/calcs.c:357: warning: ‘adj_dex_th’ initialized and declared ‘extern’ player/calcs.c:404: warning: ‘adj_str_th’ initialized and declared ‘extern’ player/calcs.c:451: warning: ‘adj_str_wgt’ initialized and declared ‘extern’ player/calcs.c:544: warning: ‘adj_str_dig’ initialized and declared ‘extern’ player/calcs.c:637: warning: ‘adj_dex_blow’ initialized and declared ‘extern’ player/calcs.c:776: warning: ‘adj_con_mhp’ initialized and declared ‘extern’ player/calcs.c:78: warning: ‘adj_int_dev’ initialized and declared ‘extern’ player/calcs.c:124: warning: ‘adj_wis_sav’ initialized and declared ‘extern’ player/calcs.c:171: warning: ‘adj_dex_dis’ initialized and declared ‘extern’ player/calcs.c:218: warning: ‘adj_int_dis’ initialized and declared ‘extern’ player/calcs.c:264: warning: ‘adj_dex_ta’ initialized and declared ‘extern’ player/calcs.c:310: warning: ‘adj_str_td’ initialized and declared ‘extern’ player/calcs.c:357: warning: ‘adj_dex_th’ initialized and declared ‘extern’ player/calcs.c:404: warning: ‘adj_str_th’ initialized and declared ‘extern’ player/calcs.c:451: warning: ‘adj_str_wgt’ initialized and declared ‘extern’ player/calcs.c:544: warning: ‘adj_str_dig’ initialized and declared ‘extern’ player/calcs.c:637: warning: ‘adj_dex_blow’ initialized and declared ‘extern’ player/calcs.c:776: warning: ‘adj_con_mhp’ initialized and declared ‘extern’ CC player/player.c CC player/spell.c CC player/timed.c CC player/util.c CC score.c CC signals.c CC save.c CC savefile.c CC spells1.c CC spells2.c CC squelch.c CC store.c CC tables.c CC target.c CC trap.c CC ui.c CC ui-birth.c CC ui-knowledge.c CC ui-menu.c CC ui-options.c CC ui-spell.c CC util.c CC variable.c CC wiz-spoil.c CC wiz-stats.c CC wizard.c CC x-char.c CC x-spell.c CC xtra2.c CC xtra3.c CC borg1.c borg1.c:4:22: error: tvalsval.h: No such file or directory borg1.c: In function ‘borg_init_1’: borg1.c:2541: warning: implicit declaration of function ‘C_MAKE’ borg1.c:2541: error: expected expression before ‘char’ borg1.c:2555: error: expected expression before ‘borg_grid’ borg1.c:2562: warning: implicit declaration of function ‘MAKE’ borg1.c:2562: error: expected expression before ‘borg_data’ borg1.c:2565: error: expected expression before ‘borg_data’ borg1.c:2568: error: expected expression before ‘borg_data’ borg1.c:2571: error: expected expression before ‘borg_data’ borg1.c:2574: error: expected expression before ‘borg_data’ borg1.c:2590: error: expected expression before ‘int’ borg1.c:2591: error: expected expression before ‘int’ borg1.c:2599: error: expected expression before ‘int’ borg1.c:2600: error: expected expression before ‘int’ borg1.c:2605: error: expected expression before ‘int’ borg1.c:2606: error: expected expression before ‘int’ borg1.c:2611: error: expected expression before ‘int’ borg1.c:2612: error: expected expression before ‘int’ borg1.c:2618: error: expected expression before ‘byte’ borg1.c:2623: error: expected expression before ‘int’ borg1.c:2624: error: expected expression before ‘int’ borg1.c:2629: error: expected expression before ‘int’ borg1.c:2630: error: expected expression before ‘int’ borg1.c:2635: error: expected expression before ‘int’ borg1.c:2636: error: expected expression before ‘int’ borg1.c:2641: error: expected expression before ‘int’ borg1.c:2642: error: expected expression before ‘int’ borg1.c:2651: error: expected expression before ‘borg_take’ borg1.c:2672: error: expected expression before ‘borg_kill’ borg1.c:2690: error: expected expression before ‘s16b’ borg1.c:2693: error: expected expression before ‘s16b’ borg1.c:4:22: error: tvalsval.h: No such file or directory borg1.c: In function ‘borg_init_1’: borg1.c:2541: warning: implicit declaration of function ‘C_MAKE’ borg1.c:2541: error: expected expression before ‘char’ borg1.c:2555: error: expected expression before ‘borg_grid’ borg1.c:2562: warning: implicit declaration of function ‘MAKE’ borg1.c:2562: error: expected expression before ‘borg_data’ borg1.c:2565: error: expected expression before ‘borg_data’ borg1.c:2568: error: expected expression before ‘borg_data’ borg1.c:2571: error: expected expression before ‘borg_data’ borg1.c:2574: error: expected expression before ‘borg_data’ borg1.c:2590: error: expected expression before ‘int’ borg1.c:2591: error: expected expression before ‘int’ borg1.c:2599: error: expected expression before ‘int’ borg1.c:2600: error: expected expression before ‘int’ borg1.c:2605: error: expected expression before ‘int’ borg1.c:2606: error: expected expression before ‘int’ borg1.c:2611: error: expected expression before ‘int’ borg1.c:2612: error: expected expression before ‘int’ borg1.c:2618: error: expected expression before ‘byte’ borg1.c:2623: error: expected expression before ‘int’ borg1.c:2624: error: expected expression before ‘int’ borg1.c:2629: error: expected expression before ‘int’ borg1.c:2630: error: expected expression before ‘int’ borg1.c:2635: error: expected expression before ‘int’ borg1.c:2636: error: expected expression before ‘int’ borg1.c:2641: error: expected expression before ‘int’ borg1.c:2642: error: expected expression before ‘int’ borg1.c:2651: error: expected expression before ‘borg_take’ borg1.c:2672: error: expected expression before ‘borg_kill’ borg1.c:2690: error: expected expression before ‘s16b’ borg1.c:2693: error: expected expression before ‘s16b’ lipo: can't figure out the architecture type of: /var/folders/lk/lkxSHiXmEYyvqPPPmlfH2U+++TI/-Tmp-//cc7KPs4C.out make: *** [borg1.o] Error 1 JTWiMac:src jtw$ make -f Makefile.osx ls: autoconf.h: No such file or directory CC borg1.c borg1.c:4:22: error: tvalsval.h: No such file or directory borg1.c: In function ‘borg_init_1’: borg1.c:2541: warning: implicit declaration of function ‘C_MAKE’ borg1.c:2541: error: expected expression before ‘char’ borg1.c:2555: error: expected expression before ‘borg_grid’ borg1.c:2562: warning: implicit declaration of function ‘MAKE’ borg1.c:2562: error: expected expression before ‘borg_data’ borg1.c:2565: error: expected expression before ‘borg_data’ borg1.c:2568: error: expected expression before ‘borg_data’ borg1.c:2571: error: expected expression before ‘borg_data’ borg1.c:2574: error: expected expression before ‘borg_data’ borg1.c:2590: error: expected expression before ‘int’ borg1.c:2591: error: expected expression before ‘int’ borg1.c:2599: error: expected expression before ‘int’ borg1.c:2600: error: expected expression before ‘int’ borg1.c:2605: error: expected expression before ‘int’ borg1.c:2606: error: expected expression before ‘int’ borg1.c:2611: error: expected expression before ‘int’ borg1.c:2612: error: expected expression before ‘int’ borg1.c:2618: error: expected expression before ‘byte’ borg1.c:2623: error: expected expression before ‘int’ borg1.c:2624: error: expected expression before ‘int’ borg1.c:2629: error: expected expression before ‘int’ borg1.c:2630: error: expected expression before ‘int’ borg1.c:2635: error: expected expression before ‘int’ borg1.c:2636: error: expected expression before ‘int’ borg1.c:2641: error: expected expression before ‘int’ borg1.c:2642: error: expected expression before ‘int’ borg1.c:2651: error: expected expression before ‘borg_take’ borg1.c:2672: error: expected expression before ‘borg_kill’ borg1.c:2690: error: expected expression before ‘s16b’ borg1.c:2693: error: expected expression before ‘s16b’ borg1.c:4:22: error: tvalsval.h: No such file or directory borg1.c: In function ‘borg_init_1’: borg1.c:2541: warning: implicit declaration of function ‘C_MAKE’ borg1.c:2541: error: expected expression before ‘char’ borg1.c:2555: error: expected expression before ‘borg_grid’ borg1.c:2562: warning: implicit declaration of function ‘MAKE’ borg1.c:2562: error: expected expression before ‘borg_data’ borg1.c:2565: error: expected expression before ‘borg_data’ borg1.c:2568: error: expected expression before ‘borg_data’ borg1.c:2571: error: expected expression before ‘borg_data’ borg1.c:2574: error: expected expression before ‘borg_data’ borg1.c:2590: error: expected expression before ‘int’ borg1.c:2591: error: expected expression before ‘int’ borg1.c:2599: error: expected expression before ‘int’ borg1.c:2600: error: expected expression before ‘int’ borg1.c:2605: error: expected expression before ‘int’ borg1.c:2606: error: expected expression before ‘int’ borg1.c:2611: error: expected expression before ‘int’ borg1.c:2612: error: expected expression before ‘int’ borg1.c:2618: error: expected expression before ‘byte’ borg1.c:2623: error: expected expression before ‘int’ borg1.c:2624: error: expected expression before ‘int’ borg1.c:2629: error: expected expression before ‘int’ borg1.c:2630: error: expected expression before ‘int’ borg1.c:2635: error: expected expression before ‘int’ borg1.c:2636: error: expected expression before ‘int’ borg1.c:2641: error: expected expression before ‘int’ borg1.c:2642: error: expected expression before ‘int’ borg1.c:2651: error: expected expression before ‘borg_take’ borg1.c:2672: error: expected expression before ‘borg_kill’ borg1.c:2690: error: expected expression before ‘s16b’ borg1.c:2693: error: expected expression before ‘s16b’ lipo: can't figure out the architecture type of: /var/folders/lk/lkxSHiXmEYyvqPPPmlfH2U+++TI/-Tmp-//ccfhIiOP.out make: *** [borg1.o] Error 1 JTWiMac:src jtw$ |
|
![]() |
![]() |
![]() |
#16 | |
Adept
Join Date: Jul 2007
Location: St George Utah, USA
Posts: 244
![]() |
Quote:
Another option would be to change the recursing of the compiler. Is there a way to tell it to look in each subdirectory for any called files? The C_MAKE() issue may come from z-virt.h. I had to add c_make and another object to z_vert.h but the modified z-vert.h should be included in the borg source. If not, just add this to your copy of z-virt.h Code:
/* Allocate a wiped array of type T[N], assign to pointer P */ /* apw --screensaver begin */ #define C_MAKE(P, N, T) \ ((P) = C_ZNEW(N, T)) /* Allocate a wiped thing of type T, assign to pointer P */ #define MAKE(P, T) \ ((P) = ZNEW(T)) /* apw -- screensaver end*/ Andrew |
|
![]() |
![]() |
![]() |
#17 | |
Rookie
Join Date: Apr 2011
Posts: 18
![]() |
Quote:
Code:
JTWiMac:src jtw$ make -f Makefile.osx ls: autoconf.h: No such file or directory CC attack.c CC birth.c CC button.c CC cave.c CC cmd0.c CC cmd1.c CC cmd2.c CC cmd3.c CC cmd4.c CC cmd-obj.c CC death.c CC debug.c CC dungeon.c CC effects.c CC files.c CC game-cmd.c CC game-event.c CC generate.c CC history.c CC init2.c CC load.c CC load-old.c CC monster/melee1.c CC monster/melee2.c CC monster/monster1.c CC monster/monster2.c CC object/identify.c CC object/obj-desc.c CC object/obj-info.c CC object/obj-make.c CC object/obj-power.c CC object/obj-ui.c CC object/obj-util.c CC object/randart.c CC option.c CC parser.c CC randname.c CC pathfind.c CC prefs.c CC player/calcs.c player/calcs.c:78: warning: ‘adj_int_dev’ initialized and declared ‘extern’ player/calcs.c:124: warning: ‘adj_wis_sav’ initialized and declared ‘extern’ player/calcs.c:171: warning: ‘adj_dex_dis’ initialized and declared ‘extern’ player/calcs.c:218: warning: ‘adj_int_dis’ initialized and declared ‘extern’ player/calcs.c:264: warning: ‘adj_dex_ta’ initialized and declared ‘extern’ player/calcs.c:310: warning: ‘adj_str_td’ initialized and declared ‘extern’ player/calcs.c:357: warning: ‘adj_dex_th’ initialized and declared ‘extern’ player/calcs.c:404: warning: ‘adj_str_th’ initialized and declared ‘extern’ player/calcs.c:451: warning: ‘adj_str_wgt’ initialized and declared ‘extern’ player/calcs.c:544: warning: ‘adj_str_dig’ initialized and declared ‘extern’ player/calcs.c:637: warning: ‘adj_dex_blow’ initialized and declared ‘extern’ player/calcs.c:776: warning: ‘adj_con_mhp’ initialized and declared ‘extern’ player/calcs.c:78: warning: ‘adj_int_dev’ initialized and declared ‘extern’ player/calcs.c:124: warning: ‘adj_wis_sav’ initialized and declared ‘extern’ player/calcs.c:171: warning: ‘adj_dex_dis’ initialized and declared ‘extern’ player/calcs.c:218: warning: ‘adj_int_dis’ initialized and declared ‘extern’ player/calcs.c:264: warning: ‘adj_dex_ta’ initialized and declared ‘extern’ player/calcs.c:310: warning: ‘adj_str_td’ initialized and declared ‘extern’ player/calcs.c:357: warning: ‘adj_dex_th’ initialized and declared ‘extern’ player/calcs.c:404: warning: ‘adj_str_th’ initialized and declared ‘extern’ player/calcs.c:451: warning: ‘adj_str_wgt’ initialized and declared ‘extern’ player/calcs.c:544: warning: ‘adj_str_dig’ initialized and declared ‘extern’ player/calcs.c:637: warning: ‘adj_dex_blow’ initialized and declared ‘extern’ player/calcs.c:776: warning: ‘adj_con_mhp’ initialized and declared ‘extern’ CC player/timed.c CC player/util.c CC score.c CC signals.c CC save.c CC savefile.c CC spells1.c CC spells2.c CC squelch.c CC store.c CC tables.c CC target.c CC trap.c CC ui.c CC ui-birth.c CC ui-menu.c CC util.c CC variable.c CC wiz-spoil.c CC wiz-stats.c CC wizard.c CC x-spell.c CC xtra2.c CC xtra3.c CC borg1.c CC borg2.c CC borg3.c borg3.c: In function ‘borg_object_star_id_aux’: borg3.c:1340: warning: comparison between signed and unsigned borg3.c: In function ‘borg_item_analyze’: borg3.c:1867: warning: comparison between signed and unsigned borg3.c: In function ‘borg_read_unknown’: borg3.c:2556: warning: implicit declaration of function ‘no_light’ borg3.c:2531: warning: unused variable ‘ag’ borg3.c: In function ‘borg_read_scroll’: borg3.c:2675: warning: unused variable ‘ag’ borg3.c: In function ‘borg_spell_okay’: borg3.c:3399: warning: unused variable ‘ag’ borg3.c: In function ‘borg_prayer_okay’: borg3.c:3586: warning: unused variable ‘ag’ borg3.c: In function ‘borg_object_star_id_aux’: borg3.c:1340: warning: comparison between signed and unsigned borg3.c: In function ‘borg_item_analyze’: borg3.c:1867: warning: comparison between signed and unsigned borg3.c: In function ‘borg_read_unknown’: borg3.c:2556: warning: implicit declaration of function ‘no_light’ borg3.c:2531: warning: unused variable ‘ag’ borg3.c: In function ‘borg_read_scroll’: borg3.c:2675: warning: unused variable ‘ag’ borg3.c: In function ‘borg_spell_okay’: borg3.c:3399: warning: unused variable ‘ag’ borg3.c: In function ‘borg_prayer_okay’: borg3.c:3586: warning: unused variable ‘ag’ CC borg4.c borg4.c: In function ‘borg_notice_aux1’: borg4.c:131: warning: implicit declaration of function ‘player_flags’ borg4.c:696: warning: suggest parentheses around && within || borg4.c: In function ‘borg_power_aux1’: borg4.c:4526: warning: suggest parentheses around && within || borg4.c: In function ‘borg_power_aux2’: borg4.c:5553: warning: suggest parentheses around && within || borg4.c: In function ‘borg_danger_aux’: borg4.c:8549: warning: implicit declaration of function ‘distance’ borg4.c:8278: warning: unused variable ‘monster_moves’ borg4.c:8274: warning: unused variable ‘glyph’ borg4.c: In function ‘borg_notice_aux1’: borg4.c:131: warning: implicit declaration of function ‘player_flags’ borg4.c:696: warning: suggest parentheses around && within || borg4.c: In function ‘borg_power_aux1’: borg4.c:4526: warning: suggest parentheses around && within || borg4.c: In function ‘borg_power_aux2’: borg4.c:5553: warning: suggest parentheses around && within || borg4.c: In function ‘borg_danger_aux’: borg4.c:8549: warning: implicit declaration of function ‘distance’ borg4.c:8278: warning: unused variable ‘monster_moves’ borg4.c:8274: warning: unused variable ‘glyph’ CC borg5.c borg5.c: In function ‘observe_take_move’: borg5.c:480: warning: implicit declaration of function ‘distance’ borg5.c: In function ‘borg_follow_kill_aux’: borg5.c:1344: warning: unused variable ‘r_ptr’ borg5.c: In function ‘borg_update_map’: borg5.c:3135: warning: implicit declaration of function ‘map_info’ borg5.c: In function ‘borg_init_5’: borg5.c:5453: warning: array subscript has type ‘char’ borg5.c: In function ‘observe_take_move’: borg5.c:480: warning: implicit declaration of function ‘distance’ borg5.c: In function ‘borg_follow_kill_aux’: borg5.c:1344: warning: unused variable ‘r_ptr’ borg5.c: In function ‘borg_update_map’: borg5.c:3135: warning: implicit declaration of function ‘map_info’ borg5.c: In function ‘borg_init_5’: borg5.c:5453: warning: array subscript has type ‘char’ CC borg6.c borg6.c:559: warning: return type defaults to ‘int’ borg6.c: In function ‘borg_freedom’: borg6.c:891: warning: implicit declaration of function ‘distance’ borg6.c: In function ‘borg_escape’: borg6.c:2102: warning: suggest parentheses around && within || borg6.c:2190: warning: suggest parentheses around && within || borg6.c:2265: warning: suggest parentheses around && within || borg6.c:2340: warning: suggest parentheses around && within || borg6.c: In function ‘borg_caution’: borg6.c:3288: warning: suggest parentheses around && within || borg6.c:3545: warning: implicit declaration of function ‘borg_count_sell’ borg6.c: At top level: borg6.c:10136: warning: ‘static’ is not at beginning of declaration borg6.c: In function ‘borg_defend_aux_genocide’: borg6.c:11829: warning: array subscript has type ‘char’ borg6.c:11832: warning: array subscript has type ‘char’ borg6.c:11835: warning: array subscript has type ‘char’ borg6.c:11843: warning: array subscript has type ‘char’ borg6.c:11843: warning: array subscript has type ‘char’ borg6.c:11880: warning: array subscript has type ‘char’ borg6.c:11884: warning: array subscript has type ‘char’ borg6.c:11884: warning: array subscript has type ‘char’ borg6.c: In function ‘borg_defend_aux_destruction’: borg6.c:12169: warning: suggest parentheses around && within || borg6.c: In function ‘borg_flow_recover’: borg6.c:16754: warning: unused variable ‘b_x’ borg6.c:16754: warning: unused variable ‘b_y’ borg6.c: In function ‘borg_flow_kill_direct’: borg6.c:17907: warning: unused variable ‘perma_grids’ borg6.c:17906: warning: unused variable ‘b_x’ borg6.c:17906: warning: unused variable ‘b_y’ borg6.c: At top level: borg6.c:13898: warning: ‘borg_perma_aux_glyph’ defined but not used borg6.c: In function ‘borg_caution’: borg6.c:3895: warning: ‘b_p’ may be used uninitialized in this function borg6.c:559: warning: return type defaults to ‘int’ borg6.c: In function ‘borg_freedom’: borg6.c:891: warning: implicit declaration of function ‘distance’ borg6.c: In function ‘borg_escape’: borg6.c:2102: warning: suggest parentheses around && within || borg6.c:2190: warning: suggest parentheses around && within || borg6.c:2265: warning: suggest parentheses around && within || borg6.c:2340: warning: suggest parentheses around && within || borg6.c: In function ‘borg_caution’: borg6.c:3288: warning: suggest parentheses around && within || borg6.c:3545: warning: implicit declaration of function ‘borg_count_sell’ borg6.c: At top level: borg6.c:10136: warning: ‘static’ is not at beginning of declaration borg6.c: In function ‘borg_defend_aux_genocide’: borg6.c:11829: warning: array subscript has type ‘char’ borg6.c:11832: warning: array subscript has type ‘char’ borg6.c:11835: warning: array subscript has type ‘char’ borg6.c:11843: warning: array subscript has type ‘char’ borg6.c:11843: warning: array subscript has type ‘char’ borg6.c:11880: warning: array subscript has type ‘char’ borg6.c:11884: warning: array subscript has type ‘char’ borg6.c:11884: warning: array subscript has type ‘char’ borg6.c: In function ‘borg_defend_aux_destruction’: borg6.c:12169: warning: suggest parentheses around && within || borg6.c: In function ‘borg_flow_recover’: borg6.c:16754: warning: unused variable ‘b_x’ borg6.c:16754: warning: unused variable ‘b_y’ borg6.c: In function ‘borg_flow_kill_direct’: borg6.c:17907: warning: unused variable ‘perma_grids’ borg6.c:17906: warning: unused variable ‘b_x’ borg6.c:17906: warning: unused variable ‘b_y’ borg6.c: At top level: borg6.c:13898: warning: ‘borg_perma_aux_glyph’ defined but not used borg6.c: In function ‘borg_caution’: borg6.c:3895: warning: ‘b_p’ may be used uninitialized in this function CC borg7.c borg7.c: In function ‘borg_test_stuff’: borg7.c:2692: warning: unused variable ‘OK_toID’ borg7.c: In function ‘borg_test_stuff’: borg7.c:2692: warning: unused variable ‘OK_toID’ CC borg8.c borg8.c: In function ‘borg_object_similar’: borg8.c:260: warning: comparison between signed and unsigned borg8.c: In function ‘borg_think_home_sell_aux3’: borg8.c:681: warning: suggest parentheses around assignment used as truth value borg8.c: In function ‘borg_think_home_sell_aux’: borg8.c:767: warning: suggest parentheses around assignment used as truth value borg8.c: In function ‘borg_think_shop_buy_aux’: borg8.c:1447: warning: suggest parentheses around && within || borg8.c: In function ‘borg_think_stair_scum’: borg8.c:2997: warning: suggest parentheses around && within || borg8.c:3051: warning: implicit declaration of function ‘distance’ borg8.c: In function ‘borg_think_dungeon_lunal’: borg8.c:3287: warning: suggest parentheses around && within || borg8.c: In function ‘borg_think_dungeon_munchkin’: borg8.c:3670: warning: suggest parentheses around && within || borg8.c: In function ‘borg_think_dungeon’: borg8.c:4169: warning: unused variable ‘feat’ borg8.c: In function ‘borg_object_similar’: borg8.c:260: warning: comparison between signed and unsigned borg8.c: In function ‘borg_think_home_sell_aux3’: borg8.c:681: warning: suggest parentheses around assignment used as truth value borg8.c: In function ‘borg_think_home_sell_aux’: borg8.c:767: warning: suggest parentheses around assignment used as truth value borg8.c: In function ‘borg_think_shop_buy_aux’: borg8.c:1447: warning: suggest parentheses around && within || borg8.c: In function ‘borg_think_stair_scum’: borg8.c:2997: warning: suggest parentheses around && within || borg8.c:3051: warning: implicit declaration of function ‘distance’ borg8.c: In function ‘borg_think_dungeon_lunal’: borg8.c:3287: warning: suggest parentheses around && within || borg8.c: In function ‘borg_think_dungeon_munchkin’: borg8.c:3670: warning: suggest parentheses around && within || borg8.c: In function ‘borg_think_dungeon’: borg8.c:4169: warning: unused variable ‘feat’ CC borg9.c borg9.c: In function ‘player_outfit_borg’: borg9.c:2989: warning: implicit declaration of function ‘inven_carry’ borg9.c: In function ‘init_translate_visuals’: borg9.c:3857: warning: implicit declaration of function ‘feat_supports_lighting’ borg9.c:3831: warning: unused variable ‘graf_david’ borg9.c: In function ‘do_cmd_borg’: borg9.c:6494: warning: implicit declaration of function ‘print_rel’ borg9.c:6503: warning: implicit declaration of function ‘prt_map’ borg9.c:6518: warning: implicit declaration of function ‘target_get’ borg9.c:6793: warning: implicit declaration of function ‘project’ borg9.c:7430: warning: unused variable ‘i’ borg9.c: In function ‘borg_write_map’: borg9.c:5025: warning: ‘borg_map_file’ may be used uninitialized in this function borg9.c: In function ‘player_outfit_borg’: borg9.c:2989: warning: implicit declaration of function ‘inven_carry’ borg9.c: In function ‘init_translate_visuals’: borg9.c:3857: warning: implicit declaration of function ‘feat_supports_lighting’ borg9.c:3831: warning: unused variable ‘graf_david’ borg9.c: In function ‘do_cmd_borg’: borg9.c:6494: warning: implicit declaration of function ‘print_rel’ borg9.c:6503: warning: implicit declaration of function ‘prt_map’ borg9.c:6518: warning: implicit declaration of function ‘target_get’ borg9.c:6793: warning: implicit declaration of function ‘project’ borg9.c:7430: warning: unused variable ‘i’ borg9.c: In function ‘borg_write_map’: borg9.c:5025: warning: ‘borg_map_file’ may be used uninitialized in this function CC z-bitflag.c CC z-file.c CC z-form.c CC z-msg.c CC z-quark.c CC z-rand.c CC z-term.c CC z-type.c CC z-util.c CC z-virt.c CC z-textblock.c ld -r -arch ppc -o angband.o.ppc attack.o birth.o button.o cave.o cmd0.o cmd1.o cmd2.o cmd3.o cmd4.o cmd-misc.o cmd-obj.o death.o debug.o dungeon.o effects.o files.o game-cmd.o game-event.o generate.o history.o init2.o load.o load-old.o macro.o monster/melee1.o monster/melee2.o monster/monster1.o monster/monster2.o object/identify.o object/obj-desc.o object/obj-info.o object/obj-make.o object/obj-power.o object/obj-ui.o object/obj-util.o object/randart.o option.o parser.o randname.o pathfind.o prefs.o player/calcs.o player/player.o player/spell.o player/timed.o player/util.o score.o signals.o save.o savefile.o spells1.o spells2.o squelch.o store.o tables.o target.o trap.o ui.o ui-birth.o ui-knowledge.o ui-menu.o ui-options.o ui-spell.o util.o variable.o wiz-spoil.o wiz-stats.o wizard.o x-char.o x-spell.o xtra2.o xtra3.o borg1.o borg2.o borg3.o borg4.o borg5.o borg6.o borg7.o borg8.o borg9.o z-bitflag.o z-file.o z-form.o z-msg.o z-quark.o z-rand.o z-term.o z-type.o z-util.o z-virt.o z-textblock.o ld -r -arch i386 -o angband.o.i386 attack.o birth.o button.o cave.o cmd0.o cmd1.o cmd2.o cmd3.o cmd4.o cmd-misc.o cmd-obj.o death.o debug.o dungeon.o effects.o files.o game-cmd.o game-event.o generate.o history.o init2.o load.o load-old.o macro.o monster/melee1.o monster/melee2.o monster/monster1.o monster/monster2.o object/identify.o object/obj-desc.o object/obj-info.o object/obj-make.o object/obj-power.o object/obj-ui.o object/obj-util.o object/randart.o option.o parser.o randname.o pathfind.o prefs.o player/calcs.o player/player.o player/spell.o player/timed.o player/util.o score.o signals.o save.o savefile.o spells1.o spells2.o squelch.o store.o tables.o target.o trap.o ui.o ui-birth.o ui-knowledge.o ui-menu.o ui-options.o ui-spell.o util.o variable.o wiz-spoil.o wiz-stats.o wizard.o x-char.o x-spell.o xtra2.o xtra3.o borg1.o borg2.o borg3.o borg4.o borg5.o borg6.o borg7.o borg8.o borg9.o z-bitflag.o z-file.o z-form.o z-msg.o z-quark.o z-rand.o z-term.o z-type.o z-util.o z-virt.o z-textblock.o lipo -arch ppc angband.o.ppc -arch i386 angband.o.i386 -create -output angband.o CC main-crb.c (objective-c) In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:41, from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:38, from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6, from /System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12, from main-crb.c:130: /usr/include/AvailabilityMacros.h:108:14: warning: #warning Building for Intel with Mac OS X Deployment Target < 10.4 is invalid. main-crb.c: In function ‘install_handlers’: main-crb.c:2564: warning: comparison between signed and unsigned main-crb.c:2571: warning: comparison between signed and unsigned main-crb.c: In function ‘validate_menus’: main-crb.c:2626: warning: comparison between signed and unsigned main-crb.c: In function ‘OpenRecentCommand’: main-crb.c:2768: warning: comparison between signed and unsigned main-crb.c:2773: warning: comparison of unsigned expression < 0 is always false main-crb.c:2773: warning: comparison between signed and unsigned main-crb.c: In function ‘AngbandGame’: main-crb.c:2813: warning: comparison between signed and unsigned main-crb.c: In function ‘TileSizeCommand’: main-crb.c:3113: warning: comparison between signed and unsigned main-crb.c:3113: warning: comparison between signed and unsigned main-crb.c:3118: warning: comparison between signed and unsigned main-crb.c:3118: warning: comparison between signed and unsigned main-crb.c: In function ‘set_graphics_mode’: main-crb.c:3270: warning: comparison between signed and unsigned main-crb.c: In function ‘ToggleCommand’: main-crb.c:3338: warning: comparison between signed and unsigned main-crb.c: In function ‘quit_calmly’: main-crb.c:3699: warning: implicit declaration of function ‘save_game’ main-crb.c: In function ‘init_paths’: main-crb.c:3887: warning: implicit declaration of function ‘init_file_paths’ main-crb.c:3890: warning: implicit declaration of function ‘create_needed_dirs’ main-crb.c: At top level: main-crb.c:1759: warning: ‘Term_xchar_mac’ defined but not used main-crb.c: In function ‘install_handlers’: main-crb.c:2564: warning: comparison between signed and unsigned main-crb.c:2571: warning: comparison between signed and unsigned main-crb.c: In function ‘validate_menus’: main-crb.c:2626: warning: comparison between signed and unsigned main-crb.c: In function ‘OpenRecentCommand’: main-crb.c:2768: warning: comparison between signed and unsigned main-crb.c:2773: warning: comparison of unsigned expression < 0 is always false main-crb.c:2773: warning: comparison between signed and unsigned main-crb.c: In function ‘AngbandGame’: main-crb.c:2813: warning: comparison between signed and unsigned main-crb.c: In function ‘TileSizeCommand’: main-crb.c:3113: warning: comparison between signed and unsigned main-crb.c:3113: warning: comparison between signed and unsigned main-crb.c:3118: warning: comparison between signed and unsigned main-crb.c:3118: warning: comparison between signed and unsigned main-crb.c: In function ‘set_graphics_mode’: main-crb.c:3270: warning: comparison between signed and unsigned main-crb.c: In function ‘ToggleCommand’: main-crb.c:3338: warning: comparison between signed and unsigned main-crb.c: In function ‘quit_calmly’: main-crb.c:3699: warning: implicit declaration of function ‘save_game’ main-crb.c: In function ‘init_paths’: main-crb.c:3887: warning: implicit declaration of function ‘init_file_paths’ main-crb.c:3890: warning: implicit declaration of function ‘create_needed_dirs’ main-crb.c: At top level: main-crb.c:1759: warning: ‘Term_xchar_mac’ defined but not used gcc -I. -W -Wall -Wno-unused-parameter -Wno-missing-field-initializers -O2 -DMACH_O_CARBON -DHAVE_MKSTEMP -DPRIVATE_USER_PATH=\"~/Library/Preferences\" -DUSE_PRIVATE_PATHS -arch i386 -arch ppc -L/local/lib -L/opt/local/lib -o angband angband.o main-crb.o -framework CoreFoundation -framework QuickTime -framework Carbon -framework Cocoa ld: warning: directory '/local/lib' following -L not found ld: warning: directory '/local/lib' following -L not found making directories... copying files... # 'optionally' install sound and graphics tiles, if present cp ../lib/xtra/graf/8x8.png ../lib/xtra/graf/8x16.png ../lib/xtra/graf/16x16.png ../lib/xtra/graf/32x32.png ../Angband.app/Contents/Resources/lib/xtra/graf cp ../lib/xtra/sound/*.wav ../Angband.app/Contents/Resources/lib/xtra/sound cp ../lib/xtra/sound/sound.cfg ../Angband.app/Contents/Resources/lib/xtra/sound install -m 755 angband ../Angband.app/Contents/MacOS install -m 644 osx/Angband.icns osx/Save.icns osx/Edit.icns osx/Data.icns ../Angband.app/Contents/Resources cp osx/English.lproj/main.nib/*ib ../Angband.app/Contents/Resources/English.lproj/main.nib sed -e 's/\$VERSION\$/3.2.0/' -e 's/\$COPYRIGHT\$/(c) 1995-2010 Angband contributors/' \ -e 's/\$NAME\$/Angband/' -e 's/\$EXECUTABLE\$/angband/' \ osx/Angband.xml > ../Angband.app/Contents/Info.plist SetFile -a B ../Angband.app JTWiMac:src jtw$ Secondly, I have kept all the src files from this compile. Do you have a preference on where I should keep it for other Mac users to access? jtw jtw Last edited by jtwadsworth; April 17, 2011 at 15:49. |
|
![]() |
![]() |
![]() |
#18 |
Adept
Join Date: Jul 2007
Location: St George Utah, USA
Posts: 244
![]() |
The borg.txt file is placed in your angband's 'user' directory. Mine is in c:\games\ang320\lib\user
As far as changes to the code, let me know what changes needed to be made to the code and I will include the list in the readme files. Remember that the borg does support extra term windows. So as the borg runs, you can have extra windows on screen and watch the inventory or other borg stat stuff. |
![]() |
![]() |
![]() |
#19 | |
Rookie
Join Date: Apr 2011
Posts: 18
![]() |
Quote:
There is no /user/ directory in the app package contents. There is one under ./library/application support/angband I'll try there...well that didn't work; I even created a /user/ directory under the /lib directory from within the package, no luck. Looks like we need to tell the borg on the Mac .app compile a different place to find borg.txt. Also, Borg seems to get stuck when trying to brand arrows/missiles, and when trying to destroy an item; it just keeps sending the same instructions ad infinitum until interrupted and restarted. Seems that must be a global issue, not just a Mac compile. jtw Last edited by jtwadsworth; April 18, 2011 at 01:17. |
|
![]() |
![]() |
![]() |
#20 | |
Adept
Join Date: Jul 2007
Location: St George Utah, USA
Posts: 244
![]() |
Quote:
Look for where your ANGBAND_DIR_USER is defined. That is the right directory. |
|
![]() |
![]() |
![]() |
Tags |
borg screensaver apwhite |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Borg for 320 is running. | APWhite | Development | 200 | January 12, 2012 10:46 |
Screensaver for 320 almost ready! | APWhite | Development | 1 | January 14, 2011 15:36 |
Screensaver needs to rewrite some code | APWhite | Vanilla | 0 | October 16, 2007 21:19 |