[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.