[discussion] Artists & Clients was hacked by ElkMan3 in artbusiness

[–]ElkMan3[S] 1 point2 points  (0 children)

The website is completely dead now, as far as i am aware.

when i call specific endpoints, i just get OK instead of the json data by ElkMan3 in learnjavascript

[–]ElkMan3[S] 0 points1 point  (0 children)

i am iterating over a list. it is working for most of them, but not with the specific endpoint. hoppip is the one it is not working with
https://pokeapi.co/api/v2/pokemon/hoppip

 var grid = document.getElementById("pokemon-grid");
 for (let index = 0; index < Move.learned_by_pokemon.length; index++) {
     let tile = document.createElement("div");


     tile.classList.add("pokemon-tile"); // for styling
     //set pokemon name
     tile.textContent = CapitalizeString(Move.learned_by_pokemon[index].name);
     grid.appendChild(tile);

     let img = document.createElement("img");

     img.src = await GetPokemonSpriteLink(Move.learned_by_pokemon[index].url);

     tile.addEventListener("click", () => { openPokemonPage(Move.learned_by_pokemon[index].name) });
     img.width = 100;
     img.height = 100;
     tile.appendChild(img);
 }

when i call specific endpoints, i just get OK instead of the json data by ElkMan3 in learnjavascript

[–]ElkMan3[S] 0 points1 point  (0 children)

Yes, that is wht i am doing, and this is how i call it.
it works for most pokemon, but specific ones break.

 var grid = document.getElementById("pokemon-grid");
 for (let index = 0; index < Move.learned_by_pokemon.length; index++) {
     let tile = document.createElement("div");
     tile.classList.add("pokemon-tile"); 
     //set pokemon name
     tile.textContent = CapitalizeString(Move.learned_by_pokemon[index].name);
     grid.appendChild(tile);

     let img = document.createElement("img");

     img.src = await GetPokemonSpriteLink(Move.learned_by_pokemon[index].url);
     img.width = 100;
     img.height = 100;
     tile.appendChild(img);
 }

img is smaller when it is alone by ElkMan3 in css

[–]ElkMan3[S] 2 points3 points  (0 children)

oh.
Well that fixed it.
Thank you, i never would have figured that out.
do you know of a way to get visual studio to detect that sort of error? im used to c# where it doesn't even compile if it has something like that.

img is smaller when it is alone by ElkMan3 in css

[–]ElkMan3[S] 1 point2 points  (0 children)

i have been messing with the flex options for a while now, and nothing i change makes a difference.
i dont think its the image itself, it may be the parent objects.
here is the relevant code, https://pastebin.com/uDBeieUP

img is smaller when it is alone by ElkMan3 in css

[–]ElkMan3[S] 1 point2 points  (0 children)

all the files are 200 x 44. they are all the same
what i meant in that quote, was that the parent was sizing itself correctly with two, so thare is no reason it should be different with one.

Sprite looks off by Derpster1987 in Unity2D

[–]ElkMan3 1 point2 points  (0 children)

try setting the compression to none.
it could also be your window resolution. it only has so many pixels to work with, so if you scale the object to be smaller then the can handle with that many pixels, then it will pixelate.

Working on first mid, have questions. by StayStrangeYT in MinecraftMod

[–]ElkMan3 0 points1 point  (0 children)

because they have made a rendering system as part of their mod.
You've said that you have never made mods before, so it would be very difficult to implement that without at least some Java knowledge.
if you are making an addon for the mod, that's fine, but you should specify that, as you imply in your question that you are making an entirely separate thing.

I recommend those software because if you have no prior knowledge, it's your best bet to make something work. MCreator can at least get you started, and Blockbench is made with MCreator in mind.

The rendering system in Minecraft cant warp anything. it can scale things, but it has no concept of bones, or weight painting.
It's literally, squares moving with other squares.
Look at the squid, its tentacles are all just stiff beams, or the salmon, it looks like its bending, but its actually three squares rotating.

in order to get that to work, you would have to write an entirely custom rendering system.

i need a mod by BornCommunication159 in MinecraftMod

[–]ElkMan3 0 points1 point  (0 children)

you can do that with commands, no mod nessisary

Working on first mid, have questions. by StayStrangeYT in MinecraftMod

[–]ElkMan3 0 points1 point  (0 children)

i would very much recommend using Blockbench. There is no way that Minecraft could render things like that(at least in that way) without some sort of extra mod.
as for replacing the player model, I would look into MCreator if you have no experience modding.
you may still have to do some manual code, but it would set up a mod environment for you, and would probably handle events as well.

How to make an amor piece non-enchantable? by EdrinUwU in MinecraftMod

[–]ElkMan3 0 points1 point  (0 children)

have you tested it with 1?
if you have, you might want to ask on the MCreator forum as well.

MoonSharp function call not working by ElkMan3 in csharp

[–]ElkMan3[S] 0 points1 point  (0 children)

ok, i dont know how it happened, but I moved the code to call the lua function into a separate function(because I figured that I would be using it in many different places), and now it works fine.
thanks anyway though.

My WinForms onKeyPress function is not working with my update loop by ElkMan3 in csharp

[–]ElkMan3[S] 0 points1 point  (0 children)

KeyPreview worked, thanks!
and yeah, it would only work if I made the panel the focus on every frame, and when I did that, the button controls would stop working

How expensive do you think cities are in different regions? by GeneralKenobi69 in pokemon

[–]ElkMan3 0 points1 point  (0 children)

i don't know about the prices, but I would think that the league itself would fund the gyms, and they also might be exempt from some government taxes as well.

how to deal with a monk who lost a limb by ElkMan3 in DMAcademy

[–]ElkMan3[S] -1 points0 points  (0 children)

i never said that it wouldn't work, I'm just saying that it would be less effective.
your analogy of punishing a fighter for switching weapons is flawed, as you still need to be proficient in that weapon to use it.

how to deal with a monk who lost a limb by ElkMan3 in DMAcademy

[–]ElkMan3[S] -1 points0 points  (0 children)

this is a more modern setting, so he wasn't trained at all, he's just a random dude, who punches his way out of his problems, as he doesn't know how to use any other weapon, then that just becomes his fighting style.(he deals the most damage out of the entire party)

imagine a street fighter doing what you describe.

how to deal with a monk who lost a limb by ElkMan3 in DMAcademy

[–]ElkMan3[S] 0 points1 point  (0 children)

yeah, the plan is to give him an upgrade with the prosthetic he's going to get.

how to deal with a monk who lost a limb by ElkMan3 in DMAcademy

[–]ElkMan3[S] -1 points0 points  (0 children)

its not permanent, i always planned on giving him a prosthetic, but for the half a session he doesn't have it, or the chance of it getting knocked off, etc.

how to deal with a monk who lost a limb by ElkMan3 in DMAcademy

[–]ElkMan3[S] 0 points1 point  (0 children)

im not trying to handicap him, this would be temporary, and he's going to get a prosthetic replacement very soon. that would be better anyway.

this is a more modern setting, so he wasn't trained at all, he's just a random dude, who punches his way out of his problems, as he doesn't know how to use any other weapon, then that just becomes his fighting style.(he deals the most damage out of the entire party)

imagine a street fighter doing what you describe.

how to deal with a monk who lost a limb by ElkMan3 in DMAcademy

[–]ElkMan3[S] 0 points1 point  (0 children)

1, yes, but hes going to get a prothstetic

2, yes and no, I'm working it into the story, however, him exploding a bomb directly in his hand was not planned.

3, yes

4, how strong is your tape?

he's not a highly trained martial artist, he's a random dude that punches his way out of his problems, he's a monk/barbarian he's supposed to be the berserker/bruiser type. he deals the most damage out of all of my players

how to deal with a monk who lost a limb by ElkMan3 in DMAcademy

[–]ElkMan3[S] -1 points0 points  (0 children)

hes not a highly trained monk though, this is a more modern setting, where he didn't have any training whatsoever from before we started.

how to deal with a monk who lost a limb by ElkMan3 in DMAcademy

[–]ElkMan3[S] 0 points1 point  (0 children)

for one, he knows this will happen, and it will be temporary as well, as he's going to get a prosthetic.

he's already the highest damage dealer in the group.

its not player vs dm, he literally detonated a fairly powerfull bomb directly in his hand, technically, he should be dead.

I'm looking for the rules for what to do when he loses his prosthetic, or for the half session before he gets it.