Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 493 494 [495] 496 497 ... 887

Author Topic: Terraria - 1.3 released. Big Patch!  (Read 1254558 times)

0x517A5D

  • Bay Watcher
  • Hex Editor‬‬
    • View Profile
Re: Terraria - 1.1 released!
« Reply #7410 on: December 16, 2011, 03:24:11 pm »

I am just about to believe this statement. How many presents on average do you need to open to get a snowglobe in a pre-wall world?

Don't know if this matters in the %s, but one of those snow globes was pre-wall, the other two post-wall.

On the other hand, the Wiki says that snowglobes only drop in hardmode.
Logged

Darvi

  • Bay Watcher
  • <Cript> Darvi is my wifi.
    • View Profile
Re: Terraria - 1.1 released!
« Reply #7411 on: December 16, 2011, 03:28:52 pm »

the Wiki says
That should tell you all there is to say on the matter.
Logged

AlStar

  • Bay Watcher
    • View Profile
Re: Terraria - 1.1 released!
« Reply #7412 on: December 16, 2011, 03:36:45 pm »

Hmm, I'd swear that I got one of them before I defeated the wall.

But if the Wiki says they're only available in hardmode, then maybe I'm misremembering things.

Nice to see that I got the drop % just about right though.

The Merchant Of Menace

  • Bay Watcher
  • Work work.
    • View Profile
Re: Terraria - 1.1 released!
« Reply #7413 on: December 16, 2011, 03:37:25 pm »

The wiki may be, and probably is, wrong. It's user edited after all.
Logged
*Hugs*

Girlinhat

  • Bay Watcher
  • [PREFSTRING:large ears]
    • View Profile
Re: Terraria - 1.1 released!
« Reply #7414 on: December 16, 2011, 03:40:25 pm »

I spent a few nights grinding zombies in my "run this dungeon" world, and got no snowglobe.  I'll readily believe that it's hardmode only, perhaps when opened in hardmode, though.

Metalax

  • Bay Watcher
    • View Profile
    • Steam Profile
Re: Terraria - 1.1 released!
« Reply #7415 on: December 16, 2011, 03:46:01 pm »

Yes, it was corrected last night but someone has changed it back to being incorrect. Globes do drop on pre-wall worlds but with a lower chance.
Logged
In the beginning was the word, and the word was "Oops!"

Shadowlord

  • Bay Watcher
    • View Profile
Re: Terraria - 1.1 released!
« Reply #7416 on: December 16, 2011, 03:49:54 pm »

I stopped playing since 1.1.1 made all my housing invalid, personally (apparently it's the doors being open).
Logged
<Dakkan> There are human laws, and then there are laws of physics. I don't bike in the city because of the second.
Dwarf Fortress Map Archive

Metalax

  • Bay Watcher
    • View Profile
    • Steam Profile
Re: Terraria - 1.1 released!
« Reply #7417 on: December 16, 2011, 03:57:04 pm »

I stopped playing since 1.1.1 made all my housing invalid, personally (apparently it's the doors being open).

Is your housing at or close to the minimum size? I kept having problems with it going invalid when doors were left open when I was using a minimum size layout, which may be the case here.
Logged
In the beginning was the word, and the word was "Oops!"

eerr

  • Bay Watcher
    • View Profile
Re: Terraria - 1.1 released!
« Reply #7418 on: December 16, 2011, 04:46:53 pm »

I spent a few nights grinding zombies in my "run this dungeon" world, and got no snowglobe.  I'll readily believe that it's hardmode only, perhaps when opened in hardmode, though.

It appears to me as either really random, diff chance per harder monster, or per monster killed X times.

I farmed the dungeon for bones and got like jack shit for snowglobes.

one?
I ran out of space before it dropped.

Go farm unicorns or corruption for presents and you might have better luck.

Best bet might be hell in prewall.
Logged

Girlinhat

  • Bay Watcher
  • [PREFSTRING:large ears]
    • View Profile
Re: Terraria - 1.1 released!
« Reply #7419 on: December 16, 2011, 04:52:57 pm »

Just got my first globe, decided to fight it out on top of my base (which is underground like a proper dwarven base).  I hope I get more snowglobes from the presents dropped by these snowmen :P

0x517A5D

  • Bay Watcher
  • Hex Editor‬‬
    • View Profile
Re: Terraria - 1.1 released!
« Reply #7420 on: December 16, 2011, 04:53:51 pm »

The Wiki is correct.

If the present is opened in a hardmode world, there is a 1 in 14 chance of getting a snow globe.

It's purely random, it does not depend on monster strength or how many monsters you've killed.

I just verified this by disassembling the executable.

And the critical part is this:
Code: [Select]
    ldc.i4.s 14                         // get a random number between 0 and 14-1.
    callvirt int32 [mscorlib]System.Random::Next(int32)
    brtrue.s check_if_we_should_create_candy_cane_blocks // if random number is not 0, skip to next section
    ldsfld bool Terraria.Main::hardMode // HERE!  HERE!  Check for hard mode
    brfalse.s check_if_we_should_create_candy_cane_blocks // if not hard mode, skip to next section,
                                        // which will create candy cane blocks.

So grind in softcore if you want, but open them in hardmode.
Logged

eerr

  • Bay Watcher
    • View Profile
Re: Terraria - 1.1 released!
« Reply #7421 on: December 16, 2011, 06:10:41 pm »

I grind ages of presents in dungeon.

...

one snowglobe.

over 1k bricks.

sure there isn't more to it?
Logged

Shadowlord

  • Bay Watcher
    • View Profile
Re: Terraria - 1.1 released!
« Reply #7422 on: December 16, 2011, 06:38:06 pm »

I stopped playing since 1.1.1 made all my housing invalid, personally (apparently it's the doors being open).

Is your housing at or close to the minimum size? I kept having problems with it going invalid when doors were left open when I was using a minimum size layout, which may be the case here.

Probably.
Logged
<Dakkan> There are human laws, and then there are laws of physics. I don't bike in the city because of the second.
Dwarf Fortress Map Archive

0x517A5D

  • Bay Watcher
  • Hex Editor‬‬
    • View Profile
Re: Terraria - 1.1 released!
« Reply #7423 on: December 16, 2011, 07:11:25 pm »

I grind ages of presents in dungeon.

...

one snowglobe.

over 1k bricks.

sure there isn't more to it?

Maybe.  I just repeated my scan for the snowglobe constant, and found what appears to be a second route for their creation.

Spoiler (click to show/hide)

Near the end of this snippet, a random number is generated.  One of the possible values is 0x25A, which is the constant for the snowglobe.  And that number is fed right into a subroutine named NewItem.  So it does appear to be a second route for generating snowglobes.

Among other tests, this snippet checks that the dying monster is of "type 0x79".  I interpret that to mean that only one type of monster can drop these particular snowglobes.  I don't know what that monster is, though.

Also, this snippet is only reached if the game is not in hardmode.  (I didn't show that test-and-branch in the snippet.)

Edit: Correction: the code tests that the monster type is not 0x79.  Monster type 0x79 cannot generate snowglobes.

Edit: Correction: cancel all of this.  This code does not generate snowglobes at all.  I just checked the definition of System.Random.Next:

Quote
Return Value
A 32-bit signed integer greater than or equal to minValue and less than maxValue; that is, the range of return values includes minValue but not MaxValue. If minValue equals maxValue, minValue is returned.

So this code generates numbers greater than or equal to 0x257, and less than 0x25A.  So the three possibilities are 0x257, 0x258, and 0x259.

This is just the present-dropping code.
« Last Edit: December 16, 2011, 07:37:12 pm by 0x517A5D »
Logged

Trapezohedron

  • Bay Watcher
  • No longer exists here.
    • View Profile
Re: Terraria - 1.1 released!
« Reply #7424 on: December 16, 2011, 08:39:23 pm »

Guess I was right after all. There are no snowglobes pre-wall. That should clear things up.

Time to initiate operation Merry Christmas pt.2.
Logged
Thank you for all the fish. It was a good run.
Pages: 1 ... 493 494 [495] 496 497 ... 887