Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old July 30, 2014, 12:55   #1
jozmon
Rookie
 
Join Date: Jul 2014
Posts: 18
jozmon is on a distinguished road
is there a code?

Okay I finally got 3.5.0 working thanks to kaypy!!!
My question is i wanna try the debug mode with 'ctrl a'
im not intrested in the high scores or anything. I am trying to make artifacts appear at my feet but if i type them in using 'ctrl a'+'shift C' it always says no artifact by that name is there a code i put in or just the name of the artifact? if theres a code to put in can you link me a page or post them if not teach me how to do it right? thank you for your time.
jozmon is offline   Reply With Quote
Old July 30, 2014, 13:16   #2
debo
Veteran
 
debo's Avatar
 
Join Date: Oct 2011
Location: Toronto, Canada
Posts: 2,364
debo is on a distinguished road
This is one of the more awkward things in the wizard UI. I think what you have to do is use the 'repetition' command to feed an integer into the artefact creation command.

In Sil, the command to repeat things is R. I'm not sure if it's the same in Vanilla. However, the idea is the same regardless.

Let's say you want the Necklace of Dwarves. If you look in lib/edit/artifact.txt, you'll notice the amulet has an id of 6 (N:6 line at the top). So, if you do R, pick '6' as your repetition count, and then type Ctrl-A C, that will create the Necklace for you.

Make sure to shout 'hadoken!' when you've successfully punched in this command chain.
__________________
Glaurung, Father of the Dragons says, 'You cannot avoid the ballyhack.'

Last edited by debo; July 30, 2014 at 15:02.
debo is offline   Reply With Quote
Old July 30, 2014, 15:29   #3
kaypy
Swordsman
 
Join Date: May 2009
Posts: 294
kaypy is on a distinguished road
Vanilla 3.5.0 is a bit simpler. It asks you for a number, rather than needing to go through the repeat command.

So Ctrl-a C 1 [enter] gets you the Phial and so forth

The number you need is still the one from the artifact list, though.
kaypy is offline   Reply With Quote
Old July 30, 2014, 15:47   #4
Derakon
Prophet
 
Derakon's Avatar
 
Join Date: Dec 2009
Posts: 8,916
Derakon is on a distinguished road
Can't you also type in the name of the artifact? So e.g. you'd type "Galadriel" for the Phial or "Dwarves" for the Necklace of the Dwarves.
Derakon is offline   Reply With Quote
Old July 30, 2014, 22:38   #5
jozmon
Rookie
 
Join Date: Jul 2014
Posts: 18
jozmon is on a distinguished road
i typed in all names i could
jozmon is offline   Reply With Quote
Old July 31, 2014, 16:49   #6
kaypy
Swordsman
 
Join Date: May 2009
Posts: 294
kaypy is on a distinguished road
Poking around a bit more, the system uses a substring search (of minimum length 3), so eg whacking on the home row for
Ctl-a C asd [return]
will get you the first artifact in the list with "asd" in the non-case-sensitive name ie Careth Asdriag

Using a short length means less chance of a typo if you don't remember the name exactly. (Although you may get a different artifact if two match the substring)

If course the confusing thing here is that the item type is not considered part of the name, so "phial" wont get you the phial. And of course if you are using randarts you have to play guess the name (or just go back to numbers)
kaypy is offline   Reply With Quote
Old July 31, 2014, 16:58   #7
kaypy
Swordsman
 
Join Date: May 2009
Posts: 294
kaypy is on a distinguished road
Hmm. Randomly searched for wer and got "The Ring of Power of Power (The One Ring)". It's like the Ring of Power (The One Ring), but it goes up to 11?

Is this just cause of playing with debug, or is it a lurking randart bug that hasn't been noticed because no-one ever finds the one ring of power (of power)?
kaypy is offline   Reply With Quote
Old July 31, 2014, 19:23   #8
jozmon
Rookie
 
Join Date: Jul 2014
Posts: 18
jozmon is on a distinguished road
okay, well rolling around on the ground crying!!! your helping me but by looking at the artifact txt i punch in the numbers and it gives me something different and trying the words random three letters works but doesnt help me get what i want, so unless i go through the numbers one at a time im screwed.
jozmon is offline   Reply With Quote
Old July 31, 2014, 19:54   #9
Derakon
Prophet
 
Derakon's Avatar
 
Join Date: Dec 2009
Posts: 8,916
Derakon is on a distinguished road
Could you tell us the exact steps you're performing, and the item that you're getting, and the item that you expected to get instead? Something's going wrong, but it's hard to know what without more information.
Derakon is offline   Reply With Quote
Old July 31, 2014, 20:04   #10
jozmon
Rookie
 
Join Date: Jul 2014
Posts: 18
jozmon is on a distinguished road
N:60f Fanor
I:boots:Pair of Leather Boots
W:40:120:20:300000
A:1:40 to 127
P:2:1d1:0:0:20
F:RES_NEXUS
E:HASTE1:200
M:Your {kind} glow{s} bright green...
L:15:SPEED
D:This wondrous pair of leather boots once sped Fanor, creator of the
D:Silmarils and the mightiest of the Eldar, to fulfill his hero's challenge
D:and do battle for a Middle-Earth held in thrall. "Dear-bought those songs
D:shall be accounted, and yet shall be well-bought. For the price could be
D:no other."
so the # should be 60 right? wrong! 60=bar chain mail of ardanelor
jozmon 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
So you want to contribute but can't code? Magnate Development 57 January 29, 2019 21:26
State of code ewert Development 2 August 4, 2010 16:08
code help please will_asher Variants 22 March 15, 2010 20:00
Looking through the code K.I.L.E.R Vanilla 5 July 11, 2007 09:01
The safe_setuid code CJNyfalt Vanilla 11 June 26, 2007 04:25


All times are GMT +1. The time now is 07:43.


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