Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old July 17, 2018, 09:39   #21
fph
Knight
 
Join Date: Apr 2009
Location: Berlin / Italy
Posts: 619
fph is on a distinguished road
Quote:
Originally Posted by wobbly View Post
Code:
DUN("small', small)
             ^
generate.c:65:25: nite: in definition of macro 'DUN'
  #define DUN(a, b) {a, b##_gen},
                        ^
make: *** [generate.o] Error 1
Ouch. You *need* a better editor. Anything with a decent syntax highlighting will color this line in a way that makes the wrong quote obvious. You risk wasting a lot of time unnecessarily otherwise.
__________________
Dive fast, die young, leave a high-CHA corpse.
--
You read a scroll labeled 'lol gtfo' of Teleport Level.
fph is offline   Reply With Quote
Old July 17, 2018, 10:49   #22
wobbly
Veteran
 
Join Date: May 2012
Location: Adelaide, Australia
Posts: 1,608
wobbly is on a distinguished road
Anything you'd recomend? Free and for windows?

Got it to compile. There's a bit that needs to go in generate.h
wobbly is offline   Reply With Quote
Old July 17, 2018, 10:59   #23
fph
Knight
 
Join Date: Apr 2009
Location: Berlin / Italy
Posts: 619
fph is on a distinguished road
I'm not that expert on the Windows side of things, unfortunately, so probably you'd get better results by Googling around (e.g. https://www.slant.co/topics/795/~bes...r-c-on-windows)
I am now using Sublime Edit, which is sort-of free (has very occasional nag screens in the free version) and is available on Windows, too. I've heard good things about Notepad++, and Microsoft now has a free version of Visual Studio.
__________________
Dive fast, die young, leave a high-CHA corpse.
--
You read a scroll labeled 'lol gtfo' of Teleport Level.
fph is offline   Reply With Quote
Old July 17, 2018, 11:16   #24
wobbly
Veteran
 
Join Date: May 2012
Location: Adelaide, Australia
Posts: 1,608
wobbly is on a distinguished road
Thanks will look round. Well I can change stuff and get it to compile so I can play here. You can enforce it to the early levels in generate.c just under where it picks the town. I might enforce a moria level and questor tag the balrog to see how that goes. There's stuff to play with for a bit.
wobbly is offline   Reply With Quote
Old July 17, 2018, 16:48   #25
EpicMan
Swordsman
 
Join Date: Dec 2009
Location: Dallas, Texas, USA
Posts: 340
EpicMan is on a distinguished road
Notepad++ is my go-to text editor. It has syntax highlighting, regular expression find and replace, and some pretty nice text manipulation tools in the TextFX plugin. It also has a compare plugin which is helpful.

Visual Studio is the only compiler I can use on my work computer, but be warned that it doesn't support a lot of newer (C99) C programming things that make compiling newer Vanilla or anything based on it a major problem. Notably, VS does not allow variable length arrays, i.e.
int size = 80;
char text[size];

You have to make a constant expression for it to work, i.e.
#define size 80
char text[size];
#undef size
EpicMan is offline   Reply With Quote
Old July 17, 2018, 16:51   #26
wobbly
Veteran
 
Join Date: May 2012
Location: Adelaide, Australia
Posts: 1,608
wobbly is on a distinguished road
I'll look at notepad++
I've been compiling with mingw. Seems to work for me
wobbly is offline   Reply With Quote
Old July 22, 2018, 10:07   #27
Gwarl
Knight
 
Join Date: Jan 2017
Posts: 590
Gwarl is on a distinguished road
Notepad++ is what I use in general, but I bite the bullet and use VS to work on composband code
Gwarl is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how do bows work?? Sky Vanilla 5 May 15, 2018 11:51
How do Quivers work Freddo Vanilla 1 March 13, 2015 14:32
how does squelch work? Tibarius Vanilla 6 January 10, 2015 18:35
[3.30] good work Tibarius Vanilla 14 August 5, 2011 15:20
Level completion (for level clearers) fizzix Vanilla 19 July 19, 2011 21:44


All times are GMT +1. The time now is 16:47.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.